From 5d163f971967657ace7c71e6c2c2912947de4578 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Thu, 25 Feb 2021 16:41:22 -0700 Subject: [PATCH] Add GitHUb Action workflow to build docker image --- .github/workflows/docker-image.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..0942663 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,22 @@ +name: Publish Docker image +on: + push: + branches: main + tags: + - '*' + +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: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.repository }}/${{ github.event.repository.name }} + registry: docker.pkg.github.com + tag_with_ref: true