diff --git a/.github/workflows/publish-container-image-icr.yml b/.github/workflows/publish-container-image-icr.yml index 390f026..2ee0fe2 100644 --- a/.github/workflows/publish-container-image-icr.yml +++ b/.github/workflows/publish-container-image-icr.yml @@ -13,10 +13,10 @@ 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 }} @@ -24,12 +24,12 @@ jobs: - 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 diff --git a/.github/workflows/publish-container-image.yml b/.github/workflows/publish-container-image.yml index 4800e01..7125c34 100644 --- a/.github/workflows/publish-container-image.yml +++ b/.github/workflows/publish-container-image.yml @@ -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