diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml new file mode 100644 index 00000000..d7d69fca --- /dev/null +++ b/.github/workflows/build-release.yaml @@ -0,0 +1,28 @@ +name: Build release + +on: + release: + types: + - created + +jobs: + test: + name: Build release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Login to GHCR + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ghcr.io/scicatproject/landingpageserver:${{ github.event.release.tag_name }}