Skip to content

Commit

Permalink
Merge pull request #59 from SAKPaaS/bugfix/github-actions-release-tag
Browse files Browse the repository at this point in the history
Fixed GITHUB_REF for release
  • Loading branch information
r-franzke authored Mar 26, 2020
2 parents 84a4c13 + fc57d54 commit f6c3bf0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ 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:${GITHUB_REF}
args: push sakpaas/backend:${GITHUB_REF##*/}

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


deploy:
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 f6c3bf0

Please sign in to comment.