Skip to content

Commit 37b9cc2

Browse files
committed
apperently you can't do that
1 parent 86ff96e commit 37b9cc2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/docker.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,22 @@ jobs:
5252
run: |
5353
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
5454
55+
- name: Build ${{ matrix.tag }}
56+
if: !(github.ref == 'refs/heads/trunk' && github.event_name != 'pull_request')
57+
uses: docker/build-push-action@v5
58+
with:
59+
push: false
60+
tags: http-proxy:${{ matrix.tag }}
61+
build-args: |
62+
FEATURES=${{ matrix.features }}
63+
RUST_TARGET=${{ matrix.rust-target }}
64+
MUSL_TARGET=${{ matrix.musl-target }}
65+
5566
- name: Build and push ${{ matrix.tag }}
67+
if: github.ref == 'refs/heads/trunk' && github.event_name != 'pull_request'
5668
uses: docker/build-push-action@v5
5769
with:
58-
push: github.ref == 'refs/heads/trunk' && github.event_name != 'pull_request'
70+
push: true
5971
tags: http-proxy:${{ matrix.tag }}
6072
build-args: |
6173
FEATURES=${{ matrix.features }}

0 commit comments

Comments
 (0)