diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..16b37b0 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: Build Release + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Auth GHCR + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build OCI Imaage + run: docker build . --tag ghcr.io/monoxane/vxconnect:${{ github.event.release.tag_name }} + - name: Push OCI Imaage + run: docker push ghcr.io/monoxane/vxconnect:${{ github.event.release.tag_name }} \ No newline at end of file