-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ccd401
commit a3960f2
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,10 +59,20 @@ jobs: | |
if: github.event_name == 'push' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- 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/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
|
||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
|
@@ -77,22 +87,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/[email protected] | ||
id: setversion | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WITH_V: true | ||
IMAGE_TAG=${{ steps.setversion.outputs.new_tag }} | ||
else | ||
IMAGE_TAG=$BRANCH_NAME | ||
|