-
Notifications
You must be signed in to change notification settings - Fork 84
43 lines (39 loc) · 1.21 KB
/
base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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'
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