mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
ci: enable docker build
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
committed by
Nicola Murino
parent
8222baa7ed
commit
5da75c3915
16
.github/workflows/docker.yml
vendored
16
.github/workflows/docker.yml
vendored
@@ -50,18 +50,18 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
# - name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
# uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
# with:
|
with:
|
||||||
# registry: ghcr.io
|
registry: ghcr.io
|
||||||
# username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
# password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
# push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
push: false
|
|
||||||
tags: ${{ steps.info.outputs.tags }}
|
tags: ${{ steps.info.outputs.tags }}
|
||||||
build-args: |
|
build-args: |
|
||||||
COMMIT_SHA=${{ steps.info.outputs.sha }}
|
COMMIT_SHA=${{ steps.info.outputs.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user