aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions/container_build/action.yml')
-rw-r--r--.github/actions/container_build/action.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/actions/container_build/action.yml b/.github/actions/container_build/action.yml
index bef1441..f4f2378 100644
--- a/.github/actions/container_build/action.yml
+++ b/.github/actions/container_build/action.yml
@@ -34,12 +34,16 @@ runs:
run: docker run --rm "${ORG}/${TARGET/-/:}" emerge --info
- name: Login to DockerHub
uses: docker/login-action@v2
- if: github.event_name == 'schedule'
+ if: |
+ github.repository_owner == 'gentoo' &&
+ (github.event_name == 'schedule' || github.event_name == 'push')
with:
username: ${{ inputs.dockerhub_username }}
password: ${{ inputs.dockerhub_password }}
- name: Push image
- if: github.event_name == 'schedule'
+ if: |
+ github.repository_owner == 'gentoo' &&
+ (github.event_name == 'schedule' || github.event_name == 'push')
shell: bash
env:
DOCKER_CLI_EXPERIMENTAL: enabled