|
8 | 8 | schedule: |
9 | 9 | # every day at 5:00 UTC |
10 | 10 | # in this case inputs are all null/empty, hence the default values are used below |
11 | | - - cron: "30 * * * *" |
12 | | - |
| 11 | + - cron: "45 * * * *" |
13 | 12 | workflow_dispatch: |
14 | | - inputs: |
15 | | - branch-to-build: |
16 | | - # do not use branch as name as it will be master in a scheduled run |
17 | | - type: string |
18 | | - description: 'Branch to checkout, build and publish' |
19 | | - required: false |
20 | | - default: 'dev' |
21 | | - tag: |
22 | | - type: string |
23 | | - description: 'Tag to apply to the images' |
24 | | - required: false |
25 | | - default: 'nightly-dev' |
26 | | - |
27 | 13 |
|
28 | 14 | jobs: |
29 | | - tag: |
30 | | - runs-on: ubuntu-latest |
31 | | - steps: |
32 | | - - name: Checkout |
33 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
34 | | - with: |
35 | | - ref: ${{ github.event.inputs.branch-to-build || 'dev'}} |
36 | | - |
37 | | - - name: Configure git |
38 | | - run: | |
39 | | - git config --global user.name "${{ env.GIT_USERNAME }}" |
40 | | - git config --global user.email "${{ env.GIT_EMAIL }}" |
41 | | -
|
42 | | - - name: Create new tag ${{ github.event.inputs.tag || 'nightly-dev'}} |
43 | | - run: | |
44 | | - git tag -f -a ${{ github.event.inputs.tag || 'nightly-dev'}} -m "[bot] release ${{ github.event.inputs.tag || 'nightly-dev'}}" |
45 | | - git push origin ${{ github.event.inputs.tag || 'nightly-dev'}} -f |
46 | | -
|
47 | | - publish-docker-containers: |
48 | | - needs: tag |
49 | | - strategy: |
50 | | - matrix: |
51 | | - platform: ['linux/amd64', 'linux/arm64'] |
52 | | - fail-fast: false |
53 | | - uses: ./.github/workflows/release-x-manual-docker-containers.yml |
54 | | - with: |
55 | | - release_number: ${{ github.event.inputs.tag || 'nightly-dev'}} |
56 | | - platform: ${{ matrix.platform }} |
57 | | - secrets: inherit |
58 | | - |
59 | | - publish-container-digests: |
60 | | - needs: publish-docker-containers |
61 | | - uses: ./.github/workflows/release-x-manual-merge-container-digests.yml |
62 | | - with: |
63 | | - release_number: ${{ github.event.inputs.tag || 'nightly-dev' }} |
64 | | - secrets: inherit |
65 | | - |
66 | | - release-helm-chart: |
67 | | - needs: publish-container-digests |
68 | | - uses: ./.github/workflows/release-x-manual-helm-chart.yml |
| 15 | + nightly-build-dev: |
| 16 | + uses: ./.github/workflows/release-x-nightly.yml |
69 | 17 | with: |
70 | | - release_number: ${{ github.event.inputs.tag || 'nightly-dev'}} |
| 18 | + branch-to-build: 'dev' |
| 19 | + tag: 'nightly-dev' |
71 | 20 | secrets: inherit |
72 | | - |
0 commit comments