Skip to content

Commit

Permalink
Update docker-buildx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bearlike committed May 13, 2024
1 parent 5828237 commit 4b3da29
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# * The 'latest' and 'stable' tags allow us to easily switch between different versions.
# * The 'dev' tag allows you to have a separate version for development.


name: Build and Push Docker Images

on:
Expand All @@ -35,9 +34,9 @@ jobs:
- name: Extract version and release type
id: extract_version
run: |
BRANCH_NAME=${{ github.ref }}
VERSION=$(echo $BRANCH_NAME | cut -d'/' -f 3 | cut -d'-' -f 1)
RELEASE_TYPE=$(echo $BRANCH_NAME | cut -d'/' -f 3 | cut -d'-' -f 2)
BRANCH_NAME=${{ github.ref_name }}
VERSION=$(echo $BRANCH_NAME | cut -d'/' -f 2 | cut -d'-' -f 1)
RELEASE_TYPE=$(echo $BRANCH_NAME | cut -d'/' -f 2 | cut -d'-' -f 2)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "release_type=$RELEASE_TYPE" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -76,8 +75,10 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
Expand Down

0 comments on commit 4b3da29

Please sign in to comment.