mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-19 01:55:48 -05:00
chore: update docker configuration
This commit is contained in:
parent
02beb66910
commit
603d79c09d
3 changed files with 35 additions and 12 deletions
|
@ -1,9 +1,10 @@
|
||||||
name: Docker Image CI
|
name: Create Docker Image for Backend
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
branches: main
|
branches: main
|
||||||
|
paths:
|
||||||
|
- 'backend/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -11,15 +12,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: install buildx
|
- name: Set up QEMU
|
||||||
id: buildx
|
uses: docker/setup-qemu-action@v1
|
||||||
uses: crazy-max/ghaction-docker-buildx@v1
|
- name: Set up Docker Buildx
|
||||||
with:
|
uses: docker/setup-buildx-action@v1
|
||||||
version: latest
|
|
||||||
- name: login to docker registry
|
- name: login to docker registry
|
||||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
- name: build the image
|
- name: build the image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build --push \
|
docker buildx build --push \
|
||||||
--tag stonith404/pingvin-share:latest \
|
--tag stonith404/pingvin-share-backend:latest \
|
||||||
--platform linux/amd64,linux/arm64 .
|
--platform linux/amd64,linux/arm64 .
|
25
.github/workflows/docker-image-frontend.yml
vendored
Normal file
25
.github/workflows/docker-image-frontend.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Create Docker Image for Frontend
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
paths:
|
||||||
|
- 'frontend/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
- name: login to docker registry
|
||||||
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
|
- name: build the image
|
||||||
|
run: |
|
||||||
|
docker buildx build --push \
|
||||||
|
--tag stonith404/pingvin-share-frontend:latest \
|
||||||
|
--platform linux/amd64,linux/arm64 .
|
|
@ -10,7 +10,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- pingvin-share-db:/var/lib/postgresql/data
|
- pingvin-share-db:/var/lib/postgresql/data
|
||||||
backend:
|
backend:
|
||||||
image: pingvin-share/backend
|
image: stonith404/pingvin-share-backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${DB_USER}
|
- POSTGRES_USER=${DB_USER}
|
||||||
|
@ -21,8 +21,6 @@ services:
|
||||||
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION}
|
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION}
|
||||||
- MAX_FILE_SIZE=${MAX_FILE_SIZE}
|
- MAX_FILE_SIZE=${MAX_FILE_SIZE}
|
||||||
- JWT_SECRET=${JWT_SECRET}
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
ports:
|
|
||||||
- '8080:8080'
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -31,7 +29,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- '3000:3000'
|
- '3000:3000'
|
||||||
image: pingvin-share/frontend
|
image: stonith404/pingvin-share-frontend
|
||||||
environment:
|
environment:
|
||||||
- SHOW_HOME_PAGE=${SHOW_HOME_PAGE}
|
- SHOW_HOME_PAGE=${SHOW_HOME_PAGE}
|
||||||
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION}
|
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION}
|
||||||
|
|
Loading…
Add table
Reference in a new issue