Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Merge branch 'main' of https://github.com/utahrobotics/lunadev-2024 #32

Merge branch 'main' of https://github.com/utahrobotics/lunadev-2024

Merge branch 'main' of https://github.com/utahrobotics/lunadev-2024 #32

Workflow file for this run

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