From 55318eaf128ca7b2009908c5e8ed48a672aa1603 Mon Sep 17 00:00:00 2001 From: Jekabs Karklins <58165815+jekabs-karklins@users.noreply.github.com> Date: Thu, 1 Dec 2022 15:24:08 +0100 Subject: [PATCH] Create build-release.yaml --- .github/workflows/build-release.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-release.yaml 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 }}