Skip to content

Commit

Permalink
feat: implemented github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniloMurer committed Aug 3, 2024
1 parent f1dc008 commit d674376
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -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/[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 }}



4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"license": "MIT",
"workspaces": [
Expand Down

0 comments on commit d674376

Please sign in to comment.