Skip to content

Update README.md

Update README.md #101

name: Build and Push Docker Image
on:
pull_request:
types: [labeled]
push:
branches:
- main
jobs:
build-and-push-workflow:
name: ${{ matrix.name }}
if: |
github.actor != 'dependabot[bot]' &&
(
github.event_name == 'push' ||
(github.event_name == 'pull_request' &&
github.event.action == 'labeled' &&
github.event.label.name == 'build and push docker image')
)
strategy:
fail-fast: false
matrix:
include:
- name: Webapp
dockerfile: ./standalone/webapp/Dockerfile
build-args: |
VITE_BACKEND_URL_WSS=wss://apollon2.aet.cit.tum.de/ws
VITE_BACKEND_URL=https://apollon2.aet.cit.tum.de
image: ghcr.io/ls1intum/apollon2/apollon-webapp
context: .
- name: Server
dockerfile: ./standalone/server/Dockerfile
build-args: |
HOST=0.0.0.0
PORT=8000
WSSPORT=4444
YPERSISTENCE=./dbDir
FRONTEND_URL=https://apollon2.aet.cit.tum.de
MONGO_URI=mongodb://db:27017/apollon2DB
image: ghcr.io/ls1intum/apollon2/apollon-server
context: .
# Uses https://github.com/ls1intum/.github/pull/16/commits/a35192af6c834a72cb12fe6b772c0cfb70b45eae
uses: ls1intum/.github/.github/workflows/build-and-push-docker-image.yml@feat/minor-build-improvements
with:
image-name: ${{ matrix.image }}
docker-file: ${{ matrix.dockerfile }}
docker-context: ${{ matrix.context }}
build-args: ${{ matrix.build-args }}