diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-12-26 06:20:48 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-12-26 06:20:48 +0530 |
commit | 1be3ab5a61f4d8f1d06d3b99a864bba71dd2d9cc (patch) | |
tree | 95907cdc40bf5083ce81ab73e5ab67b58d4067bf /.github/workflows/publish-ghcr.yml | |
parent | 062990151484e7886ad4d82d395d29e00482d839 (diff) |
Workflows & README: Adding workflow for docker image and binary releases, Updating TODO Status
Diffstat (limited to '.github/workflows/publish-ghcr.yml')
-rw-r--r-- | .github/workflows/publish-ghcr.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/publish-ghcr.yml b/.github/workflows/publish-ghcr.yml new file mode 100644 index 0000000..d697929 --- /dev/null +++ b/.github/workflows/publish-ghcr.yml @@ -0,0 +1,29 @@ +name: Docker Image CI for GHCR + +on: + push: + tags: + - "v*" + +jobs: + build_and_publish: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Log in to GHCR + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GH_TOKEN }} + + - name: Build and push image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + ghcr.io/${{ github.repository_owner }}/go-fis-api:${{ github.ref_name }} + ghcr.io/${{ github.repository_owner }}/go-fis-api:latest |