ci: enable docker build

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2020-10-05 16:17:10 +02:00 committed by Nicola Murino
parent 8222baa7ed
commit 5da75c3915

View file

@ -50,18 +50,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.CR_PAT }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
if: github.event_name != 'pull_request'
- name: Build and push
uses: docker/build-push-action@v2
with:
# push: ${{ github.event_name != 'pull_request' }}
push: false
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.info.outputs.tags }}
build-args: |
COMMIT_SHA=${{ steps.info.outputs.sha }}