Address #2920 the same way as #2907 addresses #2903 (#2923) #276
This file contains hidden or 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
name: nightly docker image builds | |
on: | |
push: | |
branches: | |
- 'main' | |
schedule: | |
- cron: '0 6 * * *' | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: docker/setup-buildx-action@v3 | |
with: | |
driver: docker | |
- uses: actions/checkout@v4 | |
with: | |
repository: gazebosim/gz-sim | |
ref: main | |
path: src | |
- name: build base image | |
uses: docker/build-push-action@v6 | |
with: | |
file: src/docker/Dockerfile.base | |
context: src | |
tags: gz-sim:base | |
load: true | |
- name: build nightly image | |
uses: docker/build-push-action@v6 | |
with: | |
file: src/docker/Dockerfile.nightly | |
build-contexts: | | |
gz-sim:base=docker-image://gz-sim:base | |
context: src |