From 24ea20cb1bd95640298c4cfb7c89ee7d71b4a93b Mon Sep 17 00:00:00 2001 From: Roelof Kallenkoot Date: Tue, 11 May 2021 11:21:47 +0200 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..3e0d6415 --- /dev/null +++ b/.github/workflows/main.yml @@ -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