docs: Fixing docker README about ssh and scp being overwritten (#118) #38
This file contains hidden or 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: Publish FIREWHEEL Docker Image | |
on: | |
release: | |
types: [published] | |
push: | |
branches: | |
- main | |
jobs: | |
push-to-ghcr: | |
name: Push Docker image to GitHub Packages | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
# list of Docker images to use as base name for tags | |
images: | | |
ghcr.io/${{ github.repository }} | |
labels: | | |
org.opencontainers.image.vendor=Sandia National Laboratories | |
org.opencontainers.image.authors=FIREWHEEL Development Team | |
org.opencontainers.image.documentation=https://sandialabs.github.io/firewheel/ | |
org.opencontainers.image.licenses=GPL-3.0 | |
# generate Docker tags based on the following events/attributes | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
type=sha,prefix=,suffix=,format=short | |
- name: Log in to GitHub Docker Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build container image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
# file: docker/firewheel_no_perms.dockerfile | |
file: docker/firewheel.dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |