Skip to content

Commit bacbcc4

Browse files
xrmxv1v
andcommitted
Brute force conditional
Co-authored-by: Victor Martinez <[email protected]>
1 parent 970b8cf commit bacbcc4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@ jobs:
4848
- run: python -m build
4949
- name: Set up Docker Buildx
5050
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
51+
- name: Log in to the Elastic Container registry
52+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
53+
with:
54+
registry: ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
55+
username: ${{ secrets.ELASTIC_DOCKER_USERNAME }}
56+
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]' )
58+
- 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]' )
5160
- 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]')
5262

5363
test:
5464
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)