diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5277709e..9e273866 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 :release- if: success() uses: actions-hub/docker@master with: - args: push sakpaas/backend:release-${GITHUB_REF} + args: push sakpaas/backend:release-${GITHUB_REF##*/} - name: Push :latest if: success() @@ -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