Skip to content

Commit

Permalink
updated actions to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
dprosper committed Oct 2, 2023
1 parent d697fa6 commit 1abb317
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-container-image-icr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ jobs:
ICR_REPOSITORY: tutorial-cloud-e2e-security
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Log in to Container Registry
uses: docker/login-action@v1.10.0
uses: docker/login-action@v3
with:
registry: icr.io
username: ${{ secrets.ICR_USER }}
password: ${{ secrets.ICR_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3.6.2
uses: docker/metadata-action@v5
with:
images: icr.io/${{ env.ICR_NAMESPACE }}/${{ env.ICR_REPOSITORY }}

- name: Build and push image
uses: docker/build-push-action@v2.8.0
uses: docker/build-push-action@v5
with:
context: ./app
file: ./app/Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v1.10.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3.5.0
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_ORG }}/${{ secrets.DOCKERHUB_REPOSITORY }}

- name: Build and push image
uses: docker/build-push-action@v2.7.0
uses: docker/build-push-action@v5
with:
context: ./app
file: ./app/Dockerfile
Expand Down

0 comments on commit 1abb317

Please sign in to comment.