Skip to content

docker-publish-base #36

docker-publish-base

docker-publish-base #36

# This yml file will trigger a Github Action on a manual dispatch.
# This Action will build and upload a Docker image to GHCR
# https://github.com/marketplace/actions/publish-docker
name: docker-publish-base
on:
workflow_dispatch:
jobs:
build_and_push_dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout
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: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
file: .devcontainer/base.Dockerfile
push: true
tags: ghcr.io/fusion-energy/neutronics-workshop:base