From 7c7e6bfddc4302ceac855844009c212fe25b9563 Mon Sep 17 00:00:00 2001 From: tylerslaton Date: Wed, 6 Mar 2024 18:19:53 -0500 Subject: [PATCH] feat: add release workflow Signed-off-by: tylerslaton --- .github/release.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/release.yaml diff --git a/.github/release.yaml b/.github/release.yaml new file mode 100644 index 0000000..46aa4b7 --- /dev/null +++ b/.github/release.yaml @@ -0,0 +1,29 @@ +name: release +on: + push: + branches: + - main + tags: + - v* + +jobs: + build_push: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Login to ghcr.io + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push the image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }} +