Merge pull request #9 from DaniloMurer/develop #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |