Create main.yml

This commit is contained in:
Roelof Kallenkoot 2021-05-11 11:21:47 +02:00 committed by GitHub
parent 4b072be8d1
commit 24ea20cb1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: rkallenkoot/redoc/cli
tag_with_ref: true