Merge pull request #1 from ngn13/1.5-dev #8
Workflow file for this run
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
name: Publish Docker Images | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: 'checkout the source code' | |
uses: actions/checkout@main | |
- name: 'login to container registry' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: 'build inventory image' | |
run: | | |
docker build . --tag ghcr.io/ngn13/ctorm:latest ghcr.io/ngn13/ctorm:${GITHUB_REF##*/} | |
docker push ghcr.io/ngn13/ctorm:${GITHUB_REF##*/} | |
docker push ghcr.io/ngn13/ctorm:latest |