-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build only full image + yc on PR (#2141)
Co-authored-by: Krzysztof Szyper <[email protected]>
- Loading branch information
1 parent
4af707d
commit ab9fe03
Showing
1 changed file
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,14 +39,41 @@ jobs: | |
with: | ||
dockerfile: Dockerfile | ||
|
||
# build_and_push: | ||
# name: Build & push | ||
# if: "!startsWith(github.ref, 'refs/heads/dependabot')" | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# flavour: [slim, plain, aws, azure, gcp, aws-azure, aws-gcp, azure-gcp, aws-azure-gcp, yc] | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Docker Buildx | ||
# uses: docker/[email protected] | ||
# with: | ||
# install: true | ||
# | ||
# - name: QEMU | ||
# uses: docker/[email protected] | ||
# with: | ||
# image: tonistiigi/binfmt:latest | ||
# platforms: amd64,arm64 | ||
# | ||
# - name: Build & push | ||
# env: | ||
# DOCKER_BUILDKIT: 1 | ||
# DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# TERM: xterm-256color | ||
# run: make push-${{ matrix.flavour }} VERSION_PREFIX=test- | ||
|
||
build_and_push: | ||
name: Build & push | ||
if: "!startsWith(github.ref, 'refs/heads/dependabot')" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
flavour: [slim, plain, aws, azure, gcp, aws-azure, aws-gcp, azure-gcp, aws-azure-gcp, yc] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -62,13 +89,21 @@ jobs: | |
image: tonistiigi/binfmt:latest | ||
platforms: amd64,arm64 | ||
|
||
- name: Build & push | ||
- name: Build aws-azure-gcp | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TERM: xterm-256color | ||
run: make build-aws-azure-gcp VERSION_PREFIX=test- | ||
|
||
- name: Build yc | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TERM: xterm-256color | ||
run: make push-${{ matrix.flavour }} VERSION_PREFIX=test- | ||
run: make build-yc VERSION_PREFIX=test- | ||
|
||
build_dependabot: | ||
name: Dependabot build | ||
|