File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 40
40
- run : pip-licenses
41
41
42
42
operator-image-buildable :
43
+ env :
44
+ USE_ELASTIC_REGISTRY : ${{ github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' ) }}
43
45
runs-on : ubuntu-latest
44
46
steps :
45
47
- uses : actions/checkout@v4
@@ -54,11 +56,11 @@ jobs:
54
56
registry : ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
55
57
username : ${{ secrets.ELASTIC_DOCKER_USERNAME }}
56
58
password : ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
57
- if : github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' )
59
+ if : ${{ env.USE_ELASTIC_REGISTRY }}
58
60
- run : docker build -f operator/Dockerfile --build-arg DISTRO_DIR=./dist .
59
- if : github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' )
61
+ if : ${{ env.USE_ELASTIC_REGISTRY }}
60
62
- run : docker build -f operator/Dockerfile --build-arg PYTHON_GLIBC_IMAGE=cgr.dev/chainguard/python --build-arg PYTHON_GLIBC_IMAGE_VERSION=latest --build-arg DISTRO_DIR=./dist --build-arg IMAGE=cgr.dev/chainguard/busybox --build-arg IMAGE_VERSION=latest .
61
- if : github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork == true || github.actor == 'dependabot[bot]')
63
+ if : ${{ ! env.USE_ELASTIC_REGISTRY }}
62
64
63
65
test :
64
66
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments