Skip to content

Commit

Permalink
Update build-test-deploy.yml
Browse files Browse the repository at this point in the history
update ations
  • Loading branch information
acdh-ch committed Feb 19, 2024
1 parent 220a7b5 commit a49e27f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
EXPOSE 5000
EOF
- name: login to github container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create tags based on git data
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
${{ env.DOCKER_TAG }}/${{ github.ref_name }}
Expand All @@ -45,7 +45,7 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{sha}}
- name: Build and push to ghcr.io
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
Expand All @@ -62,7 +62,7 @@ jobs:
- name: checkout
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -75,7 +75,7 @@ jobs:
ENV USER=herokuishuser
EOF
- name: Build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout
- name: Kubernetes credentials
run: |
Expand All @@ -120,7 +120,7 @@ jobs:
kubectl get pod
- name: Create tags based on git data
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
${{ env.DOCKER_TAG }}/${{ github.ref_name }}
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
probeType: "httpGet"
EOF
- name: 'Save config for debugging'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: auto-deploy-yamls
path: |
Expand Down Expand Up @@ -210,6 +210,6 @@ jobs:
--set application.secretName="${{ secrets.APP_NAME }}-${{ github.ref_name }}" ${{ secrets.HELM_UPGRADE_EXTRA_ARGS }} \
.github/auto-deploy-app
- name: Clear cache
uses: MyAlbum/purge-cache@v1
uses: MyAlbum/purge-cache@v2
with:
max-age: 70

0 comments on commit a49e27f

Please sign in to comment.