Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Apr 6, 2024
1 parent 9c39d96 commit a014cdf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ name: Build docker files
on:
push:

permissions:
packages: write
contents: write

jobs:

build:
runs-on: ubuntu-latest

Expand All @@ -23,12 +28,8 @@ jobs:
--label "org.opencontainers.image.description=Deposit payment example dockerized app" \
--label "org.opencontainers.image.licenses=MIT" \
-t ghcr.io/golemfactory/deposit_example:latest \
--build-arg BACKEND_URL=http://deposit.dev.golem.network:5174 \
.
# tag image with the same tag as the release
docker tag \
ghcr.io/golemfactory/deposit_example:latest \
ghcr.io/golemfactory/deposit_example:${{ steps.version.outputs.version }}
# push one image with two tags into repository
docker push --all-tags ghcr.io/golemfactory/deposit_example
10 changes: 6 additions & 4 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
services:
# application service
backend:
image: scx1332/deposit-payment-example
command: cd /app/backend && pnpm run run
image: ghcr.io/golemfactory/deposit_example
command: pnpm run run
working_dir: /app/backend
environment:
- YAGNA_APPKEY=66667777888
- YAGNA_API_URL=http://yagna:7465
Expand All @@ -18,8 +19,9 @@ services:
ports:
- "5174:5174"
frontend:
image: scx1332/deposit-payment-example
command: cd /app/frontend && pnpm run run
image: ghcr.io/golemfactory/deposit_example
command: pnpm run run
working_dir: /app/frontend
environment:
- YAGNA_APPKEY=66667777888
- YAGNA_API_URL=http://yagna:7465
Expand Down

0 comments on commit a014cdf

Please sign in to comment.