Fix cache concurrency bug #6
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
name: Build docker image for package building | |
on: | |
push: | |
branches: | |
- main | |
env: | |
IMAGE: ghcr.io/fortefibre/ros-buildroot | |
jobs: | |
build: | |
runs-on: GPU | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/bake-action@v4 | |
with: | |
push: true | |
workdir: buildroot |