-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Change - Change to GitHub Container Registry - Change CI/CD to build to GitHub Container Registry - Change version to v2.0.6 ### Fix - Fix host reference on shutdown --------- Co-authored-by: Tom Hollingworth <[email protected]>
- Loading branch information
1 parent
414388e
commit 0de3085
Showing
10 changed files
with
57 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,45 @@ | ||
name: Publish Docker | ||
on: | ||
# Trigger the workflow on push request, | ||
# but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
release: | ||
# Only use the types keyword to narrow down the activity types that will trigger your workflow. | ||
types: [published, created, edited] | ||
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: Publish to Registry | ||
- 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: libremfg/packml-simulator | ||
name: spruiktec/packml-simulator | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ LABEL org.opencontainers.image.authors="[email protected]" | |
LABEL org.opencontainers.image.source="https://github.com/libremfg/PackML-MQTT-Simulator" | ||
LABEL org.opencontainers.image.url="https://www.libremfg.com/" | ||
LABEL org.opencontainers.image.vendor="Libre Technologies Inc" | ||
LABEL org.opencontainers.image.version="2.0.5" | ||
LABEL org.opencontainers.image.version="2.0.6" | ||
|
||
WORKDIR /machine | ||
|
||
|
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 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 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 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 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 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 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 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