Skip to content

Commit edee7ec

Browse files
authored
Merge pull request #3 from Maxim-Walter/fix/build-job-fixing
PR: Fix/build job fixing
2 parents 51ae8c9 + d1b6d0c commit edee7ec

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/dev-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676

7777
- name: Build & Push via Docker Compose
7878
working-directory: projekt
79+
env:
80+
CI_REGISTRY_IMAGE: ghcr.io/${{ github.repository }}
81+
CI_COMMIT_SHA: ${{ github.sha }}
7982
run: |
8083
docker compose -f docker-compose.dev.yml build
8184
docker compose -f docker-compose.dev.yml push

projekt/.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Rename this file to .env and fill in the values
2+
JWT_SECRET=your-secret-here
3+
REFRESH_TOKEN_HMAC_SECRET=your-secret-here
4+
POSTGRES_USER=your-user
5+
POSTGRES_DB=your-db
6+
POSTGRES_PASSWORD=your-password

projekt/docker-compose.dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
- "1025:1025"
2020

2121
backend:
22-
image: "${CI_REGISTRY_IMAGE:-projekt}/backend:${CI_COMMIT_SHA:-local}"
22+
image: "${REGISTRY:-ghcr.io/mxsph}/backend:${IMAGE_TAG:-local}"
2323
container_name: backend-app
2424
build:
2525
context: ./backend
@@ -40,7 +40,7 @@ services:
4040
restart: on-failure
4141

4242
frontend:
43-
image: "${CI_REGISTRY_IMAGE:-projekt}/frontend:${CI_COMMIT_SHA:-local}"
43+
image: "${REGISTRY:-ghcr.io/mxsph}/frontend:${IMAGE_TAG:-local}"
4444
build:
4545
context: ./frontend
4646
dockerfile: Dockerfile.dev

projekt/frontend/TEST.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

test.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

test2.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)