diff --git a/.github/workflows/build-and-publish-images.yaml b/.github/workflows/build-and-publish-images.yaml index 9ba02f36..ec4b54c6 100644 --- a/.github/workflows/build-and-publish-images.yaml +++ b/.github/workflows/build-and-publish-images.yaml @@ -27,14 +27,14 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Docker buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Generate container image metadata id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | ghcr.io/${{github.repository_owner}}/educates-${{matrix.image}} @@ -45,14 +45,14 @@ jobs: type=sha - name: Login to GitHub container registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{github.actor}} password: ${{secrets.GITHUB_TOKEN}} registry: ghcr.io - name: Build and push ${{matrix.image}} image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: ${{matrix.image}} tags: ${{steps.meta.outputs.tags}} @@ -64,13 +64,13 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Docker buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Restore Docker cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{runner.os}}-buildx-base-environment-${{github.sha}} @@ -79,7 +79,7 @@ jobs: - name: Generate container image metadata id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | ghcr.io/${{github.repository_owner}}/educates-base-environment @@ -90,14 +90,14 @@ jobs: type=sha - name: Login to GitHub container registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{github.actor}} password: ${{secrets.GITHUB_TOKEN}} registry: ghcr.io - name: Build and push base-environment image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: workshop-images/base-environment tags: ${{steps.meta.outputs.tags}} @@ -128,7 +128,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Calculate variables shell: bash @@ -136,10 +136,10 @@ jobs: echo "REPOSITORY_SHA_TAG=sha-${GITHUB_SHA::7}" >>${GITHUB_ENV} - name: Set up Docker buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Restore Docker cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{runner.os}}-buildx-${{matrix.image}}-${{github.sha}} @@ -148,7 +148,7 @@ jobs: - name: Generate container image metadata id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | ghcr.io/${{github.repository_owner}}/educates-${{matrix.image}} @@ -159,14 +159,14 @@ jobs: type=sha - name: Login to GitHub container registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{github.actor}} password: ${{secrets.GITHUB_TOKEN}} registry: ghcr.io - name: Build and push ${{matrix.image}} image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: workshop-images/${{matrix.image}} build-args: | @@ -193,7 +193,7 @@ jobs: steps: - name: Check out the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Carvel tools shell: bash