Skip to content

Merge pull request #9 from DaniloMurer/develop #11

Merge pull request #9 from DaniloMurer/develop

Merge pull request #9 from DaniloMurer/develop #11

Workflow file for this run

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