diff --git a/.github/workflows/docker_image.yml b/.github/workflows/docker_image.yml index 525ac86..d65b50b 100644 --- a/.github/workflows/docker_image.yml +++ b/.github/workflows/docker_image.yml @@ -3,26 +3,25 @@ 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@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - 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 }}