-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.17 KB
/
Copy pathgit.yml
File metadata and controls
45 lines (42 loc) · 1.17 KB
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
name: git
on:
schedule:
- cron: "00 16 * * *" # In UTC time
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
_2:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
with:
buildkitd-flags: --debug
buildkitd-config: .github/buildkitd.toml
- name: Login to DockerHub
uses: docker/login-action@v4
with:
registry: harbor.softleader.com.tw
username: ${{ secrets.SL_HARBOR_ROBOT }}
password: ${{ secrets.SL_HARBOR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
file: ./git/Dockerfile.2
tags: harbor.softleader.com.tw/library/git:2
provenance: false
no-cache: true
pull: true
push: true
keepalive:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@v7
- uses: liskin/gh-workflow-keepalive@v1