-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.15 KB
/
daily.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
44
45
46
47
48
49
50
# Refresh 30/07/2024
name: Docker (Daily)
# 03:30 daily
on:
schedule:
- cron: '30 03 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
# httpd-tls/rocky8
- name: build/push (httpd-tls/rocky8)
uses: docker/build-push-action@v3
with:
context: httpd-tls/rocky8
platforms: linux/amd64
push: true
tags: ghcr.io/cropgeeks/httpd-tls:rocky8
del_runs:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 30