-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.09 KB
/
base-image.yaml
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
44
45
46
---
name: Build docker image (base)
concurrency: "docker-base-image"
on:
push:
branches:
- master
paths:
- resources/docker/Dockerfile.base
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master
- run: |
make "$GITHUB_ENV"
- name: Build and push
uses: nhatthm/gh-actions/docker-build-and-push@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ github.token }}
context: .
push: true
file: resources/docker/Dockerfile.base
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:base
build-args: |
PYTHON_VERSION=${{ env.PYTHON_VERSION }}
ALPINE_VERSION=${{ env.ALPINE_VERSION }}