docker-publish-base #37
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
# 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 |