Docker Image Webots #470
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: Docker Image Webots | |
on: | |
schedule: | |
- cron: "0 1 1 * *" | |
push: | |
branches: [master] | |
paths-ignore: | |
- "**.md" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
lfs: true | |
# Ensure that the filesystem permissions are consistent across all umasks, all git checkouts: | |
- name: Set filesystems permissions | |
run: | | |
chmod -R g+w . | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Image | |
uses: docker/build-push-action@v5 | |
with: | |
context: external | |
push: true | |
file: external/Dockerfile | |
tags: utrarobosoccer/webots | |
cache-from: type=registry,ref=utrarobosoccer/webots | |
cache-to: type=inline |