Skip to content

Commit

Permalink
workflows: update for new 2.2 branch/3.x master (fluent#8414)
Browse files Browse the repository at this point in the history
* workflows: update for new 2.2 branch/3.x master

Signed-off-by: Patrick Stephens <[email protected]>

* workflows: update for new container tags

Signed-off-by: Patrick Stephens <[email protected]>

---------

Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens authored and ahspw committed Jan 25, 2024
1 parent 00c7262 commit b5a2023
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cron-unstable-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
# Run nightly build at this time, bit of trial and error but this seems good.
schedule:
- cron: "0 6 * * *" # master build
- cron: "0 12 * * *" # 2.1 build
- cron: "0 12 * * *" # 2.2 build
- cron: "0 18 * * *" # 2.1 build

# We do not want a new unstable build to run whilst we are releasing the current unstable build.
concurrency: unstable-build-release
Expand Down Expand Up @@ -51,8 +52,14 @@ jobs:
echo "cron_branch=master" >> $GITHUB_ENV
shell: bash

- name: 2.1 run
- name: 2.2 run
if: github.event_name == 'schedule' && github.event.schedule=='0 12 * * *'
run: |
echo "cron_branch=2.2" >> $GITHUB_ENV
shell: bash

- name: 2.1 run
if: github.event_name == 'schedule' && github.event.schedule=='0 18 * * *'
run: |
echo "cron_branch=2.1" >> $GITHUB_ENV
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ jobs:
shell: bash

- name: Promote container images from staging to GHCR.io
if: ${{ startsWith(github.event.inputs.version, '2.0') || startsWith(github.event.inputs.version, '2.1') || ! startsWith(matrix.tag, 'latest') }}
if: ${{ startsWith(github.event.inputs.version, '2.') || startsWith(github.event.inputs.version, '3.') || ! startsWith(matrix.tag, 'latest') }}
run: |
docker run --rm \
quay.io/skopeo/stable:latest \
Expand Down

0 comments on commit b5a2023

Please sign in to comment.