Skip to content

Commit

Permalink
Build only full image + yc on PR (#2141)
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Szyper <[email protected]>
  • Loading branch information
github-actions[bot] and ChristophShyper authored May 9, 2024
1 parent 4af707d commit ab9fe03
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions .github/workflows/PUSH-OTHER.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ab9fe03

Please sign in to comment.