mirror of
https://github.com/Veridise/Picus.git
synced 2026-04-19 03:00:11 -04:00
ci: only build Docker in the private repo
This commit is contained in:
committed by
sorawee
parent
695acd8cb6
commit
c18ff46080
6
.github/workflows/docker-image.yml
vendored
6
.github/workflows/docker-image.yml
vendored
@@ -99,7 +99,7 @@ jobs:
|
||||
publish-docker:
|
||||
needs: [wtns-test, configuration-test, main-test, misc-test]
|
||||
name: "Publish Docker image to DockerHub"
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' && github.repository == 'Veridise/picus-private'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
@@ -107,8 +107,8 @@ jobs:
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
username: ${{ secrets.SAAS_DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.SAAS_DOCKERHUB_TOKEN }}
|
||||
- name: Build and push to DockerHub
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user