Bump verbosity to 5 #9
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: Build and publish Docker container | |
on: | |
push: | |
branches: | |
- main | |
- ghcr | |
jobs: | |
build-and-publish: | |
name: Build and publish Docker container | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to Packages Container registry | |
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: podman build --tag "ghcr.io/jsha/unboundtest:${GITHUB_SHA}" . | |
- name: Tag latest | |
run: podman tag "ghcr.io/jsha/unboundtest:${GITHUB_SHA}" "ghcr.io/jsha/unboundtest/latest" . | |
- name: Push | |
run: podman push "ghcr.io/jsha/unboundtest:${GITHUB_SHA}" | |
- name: Push | |
run: podman push "ghcr.io/jsha/unboundtest:latest" |