-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.17 KB
/
dev-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: dev-deploy
on:
push:
branches:
- develop
workflow_dispatch:
env:
BASE_IMAGE_NAME: ghcr.io/geoadmin/swissgeol-assets
jobs:
build-push-docker-images:
runs-on: ubuntu-latest
name: Build and push docker images
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Define version
run: |
echo VERSION=$(cat VERSION).$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Build and push docker image (app)
uses: ./.github/actions/create-image
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-app
VERSION: ${{ env.VERSION }}
PREFIX: e
TAG: type=edge
LATEST: false
DOCKERFILE: ./apps/client-asset-sg/docker/Dockerfile
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image (api)
uses: ./.github/actions/create-image
with:
IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-api
VERSION: ${{ env.VERSION }}
PREFIX: e
TAG: type=edge
LATEST: false
DOCKERFILE: ./apps/server-asset-sg/docker/Dockerfile
TOKEN: ${{ secrets.GITHUB_TOKEN }}