Skip to content

Commit

Permalink
Add GitHub Actions set Docker image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
joglomedia committed Aug 31, 2021
1 parent 4b4a252 commit 43ba44b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lts-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: Set Docker Image Tag
run: |
GITHUB_BRANCH_NAME=$(echo "${GITHUB_REF##*/}")
[[ ${GITHUB_BRANCH_NAME == "master" ]] && GITHUB_BRANCH_NAME=latest
[[ ${GITHUB_BRANCH_NAME} == "master" ]] && GITHUB_BRANCH_NAME=latest
echo "IMAGE_TAG=$(echo ${GITHUB_BRANCH_NAME})" >> $GITHUB_ENV
-
name: Build and Push Image to DockerHub
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: Set Docker Image Tag
run: |
GITHUB_BRANCH_NAME=$(echo "${GITHUB_REF##*/}")
[[ ${GITHUB_BRANCH_NAME == "master" ]] && GITHUB_BRANCH_NAME=latest
[[ ${GITHUB_BRANCH_NAME} == "master" ]] && GITHUB_BRANCH_NAME=latest
echo "IMAGE_TAG=$(echo ${GITHUB_BRANCH_NAME})" >> $GITHUB_ENV
-
name: Build and Push Image to DockerHub
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
name: Set Docker Image Tag
run: |
GITHUB_BRANCH_NAME=$(echo "${GITHUB_REF##*/}")
[[ ${GITHUB_BRANCH_NAME == "master" ]] && GITHUB_BRANCH_NAME=latest
[[ ${GITHUB_BRANCH_NAME} == "master" ]] && GITHUB_BRANCH_NAME=latest
echo "IMAGE_TAG=$(echo ${GITHUB_BRANCH_NAME})" >> $GITHUB_ENV
-
name: Build and Push Image to DockerHub
Expand Down

0 comments on commit 43ba44b

Please sign in to comment.