Skip to content

Commit

Permalink
fix/ci: switch recipe to main only on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun authored Sep 17, 2024
1 parent 6935034 commit 1db4033
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/vib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
check_base_status:
runs-on: ubuntu-latest
steps:
- name: Clone base image.
- name: Clone base image
if: ${{ github.ref_type == 'tag' }}
uses: actions/checkout@v4
with:
repository: Vanilla-OS/desktop-image

- name: Check if base is up to date.
- name: Check if the base is up to date.
if: ${{ github.ref_type == 'tag' }}
run: |
git fetch origin
Expand All @@ -55,7 +55,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Change tag in recipe.
- name: Change tag in recipe
if: ${{ github.ref_type == 'tag' }}
run: |
sed 's/ghcr.io\/vanilla-os\/desktop:dev/ghcr.io\/vanilla-os\/desktop:main/' -i recipe.yml
Expand All @@ -79,6 +80,7 @@ jobs:
if: ${{ github.ref_type != 'tag' }}
run: |
echo "EXTRA_TAG=ref,event=branch" >> "$GITHUB_ENV"
- name: Extra image tag release
if: ${{ github.ref_type == 'tag' }}
run: |
Expand Down

0 comments on commit 1db4033

Please sign in to comment.