This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
hotfix #34
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: BuildDockerImages | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
paths: | |
- lunadev/*.dockerfile | |
- lunadev/*.sh | |
- .github/workflows/docker-image.yml | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- lunadev/*.dockerfile | |
- lunadev/*.sh | |
- .github/workflows/docker-image.yml | |
jobs: | |
build_amd64: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_BUILDKIT: 1 | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
steps: | |
- name: Cache Docker images. | |
uses: ScribeMD/[email protected] | |
with: | |
key: docker-amd64 | |
- name: Log in to registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build AMD64 luna | |
run: docker build lunadev/ --file lunadev/luna.dockerfile --target luna --tag ghcr.io/utahrobotics/lunabotics/luna:2024 | |
- name: Push AMD64 luna | |
run: docker image push ghcr.io/utahrobotics/lunabotics/luna:2024 |