Skip to content

Merge pull request #47 from libremfg/fix/packml-command-module-refere… #64

Merge pull request #47 from libremfg/fix/packml-command-module-refere…

Merge pull request #47 from libremfg/fix/packml-command-module-refere… #64

Workflow file for this run

name: Publish Docker
on:
push:
tags:
- v*
# # Temporary to test the action
# branches:
# - my/current-branch
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@master
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to GitHub Container Registry
if: ${{ github.ref_type == 'tag' }} # Only useful when testing actions on a branch
uses: docker/build-push-action@v6
with:
push: true
tags: |
ghcr.io/libremfg/packml-simulator:${{ github.ref_name }}
ghcr.io/libremfg/packml-simulator:latest
# # Uncomment when testing actions on a branch
# - name: Publish to GitHub Container Registry on Branch
# if: ${{ github.ref_type == 'branch' }}
# uses: docker/build-push-action@v6
# with:
# push: true
# tags: |
# ghcr.io/libremfg/packml-simulator:test
- name: Publish to DockerHub Registry
if: ${{ github.ref_type == 'tag' }} # Only useful when testing actions on a branch
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: spruiktec/packml-simulator
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}