Merge pull request #141 from macbre/dependabot/github_actions/docker/… #99
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 a Docker image to ghcr.io and Docker Hub | |
on: | |
# publish on releases (tagged as "x.y.z" - "v" prefix is removed) | |
release: | |
types: [ published ] | |
# publish on pushes to the main branch (tagged as "master") | |
push: | |
branches: | |
- master | |
jobs: | |
docker_publish: | |
runs-on: "ubuntu-20.04" | |
steps: | |
- uses: actions/checkout@v4 | |
# https://github.com/marketplace/actions/push-to-ghcr | |
- name: Build and publish a Docker image for macbre/nginx-http3 | |
uses: macbre/push-to-ghcr@v14 | |
with: | |
image_name: macbre/nginx-http3 | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
docker_io_token: ${{ secrets.DOCKER_IO_ACCESS_TOKEN }} |