Skip to content

fix docker

fix docker #24

Workflow file for this run

name: Docker CI
on:
push:
branches: ["humble"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: epflxplore/nav
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- dockerfile: ./docker_humble_desktop/Dockerfile
context: .
tag: humble-desktop
platform: linux/amd64
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
file: ${{ matrix.dockerfile }}
context: ${{ matrix.context }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }}
platforms: ${{ matrix.platform }}
no-cache: true
pull: true
push: true