-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (41 loc) · 1.19 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
name: Build Alpine-SAP-Image
run-name: Building Alpine-SAP-Image
on:
schedule:
- cron: "0 0 * * *" # daily
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
environment: build
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
package: cicd/alpine
older-than: "30 days"
- name: Setup Docker-Buildx
uses: docker/setup-buildx-action@v3
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm64
- 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: ${{ steps.qemu.outputs.platforms }}
tags: ghcr.io/${{ github.repository_owner }}/cc-utils/alpine:3
file: Dockerfile.alpine-sap