-
Notifications
You must be signed in to change notification settings - Fork 29
48 lines (44 loc) · 1.32 KB
/
alpine-sap.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
name: Build Alpine-SAP-Image
run-name: Building Alpine-SAP-Image
on:
schedule:
- cron: "0 0 * * *" # daily
workflow_dispatch:
jobs:
build-and-push:
if: ${{ github.repository == 'gardener/cc-utils' }} # do not run for forked repositories
runs-on: ubuntu-latest
environment: build
permissions:
contents: read
packages: write
env:
platforms: linux/amd64,linux/arm64
steps:
- uses: actions/checkout@v4
- name: Setup Docker-Buildx
uses: docker/setup-buildx-action@v3
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ env.platforms }}
- name: docker-auth
id: docker-auth
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Build and Publish Alpine-SAP-Image
uses: docker/build-push-action@v6
with:
push: true
platforms: ${{ env.platforms }}
tags: ghcr.io/${{ github.repository_owner }}/cc-utils/alpine:3
file: Dockerfile.alpine-sap
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
package: cc-utils/alpine
older-than: "30 days"