Skip to content

Commit

Permalink
Remove build-base stage
Browse files Browse the repository at this point in the history
Doesn't actually save us much time. Reduce some complexity.
  • Loading branch information
HeroCC committed Oct 17, 2024
1 parent 5c5f74e commit 70f183d
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,8 @@ env:
PUSH_IMAGE: ${{ (github.ref_name == 'master') || (github.repository_owner != 'moos-ivp') }}

jobs:
build-base:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: linux/amd64
- os: ubuntu-latest # change this to the native arm runner when Github makes it public
arch: linux/arm64
steps:
- name: Prepare
run: |
platform=${{ matrix.arch }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
echo "COMMIT_TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build base by digest for cache
id: build
uses: docker/build-push-action@v6
env:
SOURCE_DATE_EPOCH: ${{ env.COMMIT_TIMESTAMP }}
with:
platforms: ${{ matrix.platform }}
file: docker/moos-ivp/Dockerfile
target: base
cache-from: type=gha
cache-to: type=gha,mode=max

build-minrobot:
runs-on: ubuntu-latest
needs:
- build-base
env:
FLAVOR: ""
steps:
Expand Down

0 comments on commit 70f183d

Please sign in to comment.