From 6f3e7c8ae45bc280f844511f78f8b9cbabe2cd62 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Sat, 21 Nov 2020 20:05:32 +0100 Subject: [PATCH] Create docker-publish.yml --- .github/workflows/docker-publish.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 00000000..c3dc7dc6 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,20 @@ +name: Publish Docker image +on: + release: + types: [published] +jobs: + push_to_registry: + name: Push Docker image to GitHub Packages + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Push to GitHub Packages + uses: docker/build-push-action@v1 + with: + context: backend + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: docker.pkg.github.com + repository: albertoxamin/bang/bang-backend + tag_with_ref: true