From 7ba6c2da8aa8be2a1d312a9a7da8e6e3a38a4d11 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Wed, 24 Apr 2024 01:56:15 +0500 Subject: [PATCH] Adapt github action for GHCR --- .github/workflows/docker_image.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker_image.yml b/.github/workflows/docker_image.yml index 525ac86..bcdf24c 100644 --- a/.github/workflows/docker_image.yml +++ b/.github/workflows/docker_image.yml @@ -3,26 +3,24 @@ name: build_image on: push: branches: - - 'master_blocked' + - 'master' jobs: docker: runs-on: ubuntu-latest steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/setup-buildx-action@v2 + - name: Login to GHCR + uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: push: true - tags: ixsystems/apps_validation:latest + tags: ghcr.io/truenas/apps_validation:latest - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }}