Base Image #242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Base Image | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/base.yml' | |
- 'docker/Dockerfile.base' | |
- 'docker/Dockerfile.base.dockerignore' | |
- 'docker/Dockerfile.base-dev' | |
- 'docker/Dockerfile.base-dev.dockerignore' | |
- 'pyproject.toml' | |
- 'poetry.lock' | |
- 'package.json' | |
- 'package-lock.json' | |
schedule: | |
- cron: '30 5 */14 * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build base image | |
run: docker build -t ghcr.io/emfcamp/website-base:latest -f ./docker/Dockerfile.base . | |
- name: Publish base image | |
run: docker push ghcr.io/emfcamp/website-base:latest | |
- name: Build base-dev image | |
run: docker build -t ghcr.io/emfcamp/website-base-dev:latest -f ./docker/Dockerfile.base-dev . | |
- name: Publish base-dev image | |
run: docker push ghcr.io/emfcamp/website-base-dev:latest |