From 43745881dd0c11482c3780d8f892956131d7241a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bojl=C3=A9n?= <66130243+taobojlen@users.noreply.github.com> Date: Thu, 8 Jun 2023 23:09:52 +0100 Subject: [PATCH] release docker images to ghcr --- .github/workflows/deploy.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..6dc26c1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,44 @@ +name: Build image + +on: + push: + branches: + - main + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build: + runs-on: ubuntu-latest + # Permissions to use OIDC token authentication + permissions: + contents: read + id-token: write + # Allows pushing to the GitHub Container Registry + packages: write + steps: + - uses: actions/checkout@v3 + - uses: depot/setup-action@v1 + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Build & push backend + uses: depot/build-push-action@v1 + with: + project: 3tz1wxj8cr + context: backend + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + - name: Build & push gephi + uses: depot/build-push-action@v1 + with: + project: 3tz1wxj8cr + context: gephi + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}