mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-04-20 02:27:30 -04:00
protect docker actions on pull requests
This commit is contained in:
parent
51a1f0a710
commit
b8679fb5cc
3
.github/workflows/docker-latest.yml
vendored
3
.github/workflows/docker-latest.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
|||||||
run: sbt assembly
|
run: sbt assembly
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
@ -36,8 +37,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: ./Runner.Dockerfile
|
file: ./Runner.Dockerfile
|
||||||
push: true
|
|
||||||
tags: librecaptcha/lc-core:latest
|
tags: librecaptcha/lc-core:latest
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user