Skip to content

Commit

Permalink
Fixed tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jstsddg committed Mar 26, 2020
2 parents 3458087 + f6c3bf0 commit 3888fac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:

- name: Build image
if: success()
run: docker build -t sakpaas/backend:release-${GITHUB_REF} .
run: docker build -t sakpaas/backend:release-${GITHUB_REF##*/} .

- name: Tag image
if: success()
run: docker tag sakpaas/backend:release-${GITHUB_REF} sakpaas/backend:latest
run: docker tag sakpaas/backend:release-${GITHUB_REF##*/} sakpaas/backend:latest

- name: Push <image>:release-<tag>
if: success()
uses: actions-hub/docker@master
with:
args: push sakpaas/backend:release-${GITHUB_REF}
args: push sakpaas/backend:release-${GITHUB_REF##*/}

- name: Push <image>:latest
if: success()
Expand All @@ -55,7 +55,7 @@ jobs:
uses: stefanprodan/kube-tools@v1
with:
kustomize: 3.4.0
command: "cd backend/production && kustomize edit set image sakpaas/backend=sakpaas/backend:release-${GITHUB_REF}"
command: "cd backend/production && kustomize edit set image sakpaas/backend=sakpaas/backend:release-${GITHUB_REF##*/}"

- name: Deploy
uses: actions-hub/kubectl@master
Expand Down

0 comments on commit 3888fac

Please sign in to comment.