diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b19790c..4dd89af 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,7 +17,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - # Generate automatically tags - name: Docker meta id: meta uses: docker/metadata-action@v3 @@ -30,12 +29,11 @@ jobs: type=ref,event=pr type=sha - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Log in to the Container registry uses: docker/login-action@v3 @@ -44,10 +42,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # Build the images - name: Build and push docker - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v3 with: + context: . push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}