-
Notifications
You must be signed in to change notification settings - Fork 23
51 lines (43 loc) · 1.38 KB
/
base.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
47
48
49
50
51
name: "base"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # 00:00 UTC Everyday
env:
DOCKER_HUB_REPO: portainer/base
IMAGE_TAG: latest
jobs:
build_images:
runs-on: ubuntu-latest
steps:
- name: "[preparation] checkout"
uses: actions/checkout@v4.1.1
- name: "[preparation] set up qemu"
uses: docker/setup-qemu-action@v3.2.0
- name: "[preparation] set up docker context for buildx"
run: docker context create builders
- name: "[preparation] set up docker buildx"
uses: docker/setup-buildx-action@v3.6.1
with:
endpoint: builders
driver-opts: image=moby/buildkit:v0.16.0
platforms: linux/amd64,linux/arm64,linux/arm,linux/ppc64le
- name: "[preparation] docker login"
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "build and push images"
uses: docker/build-push-action@v6.7.0
with:
context: base/
tags: ${{ env.DOCKER_HUB_REPO }}:${{ env.IMAGE_TAG }}
platforms: |
linux/amd64
linux/arm64
linux/arm
linux/ppc64le
attests: |
type=sbom,generator=docker/scout-sbom-indexer:latest
type=provenance,mode=max
push: true