Merge pull request #42 from bfritscher/enable_nested_fields #33
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 Deploy Docker Image | |
on: | |
release: | |
types: | |
- created | |
- published | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# https://github.com/marketplace/actions/push-to-ghcr | |
- name: Build and publish a Docker image for ${{ github.repository }} | |
uses: macbre/push-to-ghcr@master | |
with: | |
image_name: ${{ github.repository }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# optionally push to the Docker Hub (docker.io) | |
docker_io_token: ${{ secrets.DOCKER_IO_ACCESS_TOKEN }} # see https://hub.docker.com/settings/security | |
# customize the username to be used when pushing to the Docker Hub | |
docker_io_user: bfritscher # see https://github.com/macbre/push-to-ghcr/issues/14 | |
- | |
name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |