From 2d877dc0d6c4c3359389fec164194a9e714fd278 Mon Sep 17 00:00:00 2001 From: queeup Date: Sun, 7 Apr 2024 04:17:33 +0300 Subject: [PATCH] update github actions --- .github/workflows/container_build_and_push.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/container_build_and_push.yml b/.github/workflows/container_build_and_push.yml index cc70dad..7ac2130 100644 --- a/.github/workflows/container_build_and_push.yml +++ b/.github/workflows/container_build_and_push.yml @@ -19,13 +19,13 @@ jobs: uses: actions/checkout@v3 - name: Log in to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -33,27 +33,27 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: | - ${{ github.repository }} + ${{ secrets.DOCKER_HUB_USERNAME }}/upnpc-container ghcr.io/${{ github.repository }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: linux/amd64,linux/arm64,linux/arm/8,linux/arm/7,linux/arm/6 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Available platforms run: echo ${{ steps.buildx.outputs.platforms }} - name: Build and push id: docker_build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64,linux/arm/8,linux/arm/7,linux/arm/6 context: .