release docker images to ghcr

pull/1/head
Tao Bojlén 2023-06-08 23:09:52 +01:00
rodzic 0234a465f2
commit 43745881dd
1 zmienionych plików z 44 dodań i 0 usunięć

44
.github/workflows/deploy.yml vendored 100644
Wyświetl plik

@ -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 }}