From 4b819f4df8af27830deb92570dab23f5d846a10f Mon Sep 17 00:00:00 2001 From: milesial Date: Wed, 18 Aug 2021 00:31:19 +0200 Subject: [PATCH] Fix actions Former-commit-id: 016536a695baf8ea78b83da6b4b2bfe121e070e9 --- .github/workflows/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d3225f..0c9a416 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 - name: Log in to Docker Hub uses: docker/login-action@v1 @@ -22,7 +25,7 @@ jobs: uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: registry: ghcr.io - username: ${{ github.actor }} + username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker @@ -33,10 +36,10 @@ jobs: - name: Build and push Docker image id: docker_build - uses: docker/build-push-action@v1 + uses: docker/build-push-action@v2 with: context: . push: true tags: | - milesial/unet:latest - ghcr.io/milesial/unet:latest + milesial/unet:latest + ghcr.io/milesial/pytorch-unet:latest