Skip to content

feat(monolith): display date #21

feat(monolith): display date

feat(monolith): display date #21

Workflow file for this run

---
name: Build images for trainings
on:
# trigger only on push to dev branch
push:
branches:
- dev
jobs:
build-and-push:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push to ghcr
run: |
cd m03_developer/monolith/
docker build -t ghcr.io/camptocamp/courseware-containers-m03:monolith \
--pull --no-cache \
--label GIT_COMMIT=$(git rev-parse HEAD) .
docker push ghcr.io/camptocamp/courseware-containers-m03:monolith
docker build -t ghcr.io/camptocamp/courseware-containers-m03:static \
-f Dockerfile.static \
--pull --no-cache \
--label GIT_COMMIT=$(git rev-parse HEAD) .
docker push ghcr.io/camptocamp/courseware-containers-m03:static