-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (23 loc) · 1.04 KB
/
workflow.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
name: building churrer.xyz
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: get version
uses: xile611/[email protected]
id: version
- name: log in to github container registry
run: docker login https://ghcr.io -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_TOKEN }}
- name: build client docker image
run: docker build ./client/ --tag ghcr.io/danilomurer/churrer.xyz:${{ steps.version.outputs.current_version }}
- name: publish client docker image
run: docker push ghcr.io/danilomurer/churrer.xyz:${{ steps.version.outputs.current_version }}
- name: build server docker image
run: docker build ./server/ --tag ghcr.io/danilomurer/churrer.xyz-server:${{ steps.version.outputs.current_version }}
- name: publish server docker image
run: docker push ghcr.io/danilomurer/churrer.xyz-server:${{ steps.version.outputs.current_version }}