From d67437605bce213dd0a00752b41b985f4afa8a26 Mon Sep 17 00:00:00 2001 From: Danilo Jakob Date: Sun, 4 Aug 2024 00:26:28 +0200 Subject: [PATCH] feat: implemented github actions workflow --- .github/workflows/workflow.yml | 30 ++++++++++++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..d958261 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,30 @@ +name: building churrer.xyz + +on: + push: + branches: [ "main" ] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: get version + uses: xile611/read-package-version-action@v2.1 + 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 }} + + + diff --git a/package.json b/package.json index 1791641..2157182 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "house", - "version": "1.0.0", + "version": "0.3.0", "private": true, - "repository": "https://github.com/DaniloMurer/house.git", + "repository": "https://github.com/DaniloMurer/churrer.xyz.git", "author": "Danilo Jakob ", "license": "MIT", "workspaces": [