Skip to content

Commit

Permalink
Fix build .yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiMatter committed Oct 6, 2024
1 parent 5a3646c commit 2e9912b
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,31 @@ jobs:
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Bump version and push tag
if: ${{ github.ref_name == 'stable' }}
id: setversion
uses: anothrNick/github-tag-action@1.36.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: stable

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Bump version and push tag
id: setversion
uses: anothrNick/github-tag-action@1.36.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand All @@ -77,22 +98,12 @@ jobs:
echo "SHORT_COMMIT_ID=$calculatedSha" >> $GITHUB_ENV
- name: Determine Docker image tag
id: setversion
id: determine_tag
run: |
BRANCH_NAME="${{ github.ref_name }}"
if [[ "$BRANCH_NAME" == "dev" ]]; then
IMAGE_TAG="dev"
elif [[ "$BRANCH_NAME" == "stable" ]]; then
# Checkout GitHub Action and set up QEMU and Docker Buildx
actions/checkout@v2
uses: docker/setup-qemu-action@v3
uses: docker/setup-buildx-action@v3
# Bump version and push tag
uses: anothrNick/github-tag-action@1.36.0
id: setversion
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
IMAGE_TAG=${{ steps.setversion.outputs.new_tag }}
else
IMAGE_TAG=$BRANCH_NAME
Expand Down

0 comments on commit 2e9912b

Please sign in to comment.