Skip to content

Commit

Permalink
fix: do not rely on latest tag, use kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Feb 18, 2021
1 parent 77c9077 commit a9afb84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/treetracker-wallet-api-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ jobs:
file: ./Dockerfile
push: true
tags: greenstand/treetracker-wallet-api:${{ steps.package-version.outputs.current-version }}
- name: Build snapshot and push on merge
id: docker_build_merge
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
tags: greenstand/treetracker-wallet-api:latest
- shell: bash
run: |
echo '${{ steps.package-version.outputs.current-version }}' > image-tag
Expand Down
2 changes: 1 addition & 1 deletion deployment/treetracker-wallet-api-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ subjects:
roleRef:
kind: ClusterRole
name: k8s-wait-for
apiGroup: rbac.authorization.k8s.io
apiGroup: rbac.authorization.k8s.io
4 changes: 2 additions & 2 deletions deployment/treetracker-wallet-api-db-migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
spec:
containers:
- name: migration
image: greenstand/treetracker-wallet-api:latest
image: greenstand/treetracker-wallet-api:TAG
env:
- name: BASE_DATABASE_URL
valueFrom:
Expand All @@ -19,4 +19,4 @@ spec:
value: "$(BASE_DATABASE_URL)&schema=wallets"
command: ["node"]
args: ["node_modules/db-migrate/bin/db-migrate", "up", "--migrations-dir", "database/migrations/", "-v"]
restartPolicy: Never
restartPolicy: Never

0 comments on commit a9afb84

Please sign in to comment.