-
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (59 loc) · 1.84 KB
/
git-hub.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: git-hub
on: [push]
jobs:
build-gh-old-no-buildkit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: whoan/docker-build-with-cache-action@master
env:
DOCKER_BUILDKIT: 0
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: docker.pkg.github.com # old registry only works disabling BUILDKIT
image_name: hello-world-old-no-buildkit
build-gh-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: whoan/docker-build-with-cache-action@master
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: ghcr.io
image_name: hello-world-ghcr
stages_image_name: hello-world-new:tag_is_ignored # tag is ignored when a custom cache image name is given
build-gh-no-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: whoan/docker-build-with-cache-action@master
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: ghcr.io
image_name: hello-world-no-push
push_image_and_stages: false
build-gh-push-on-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: whoan/docker-build-with-cache-action@master
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: ghcr.io
image_name: hello-world-push-on-pr
push_image_and_stages: on:pull_request
build-gh-push-on-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: whoan/docker-build-with-cache-action@master
with:
username: whoan
password: "${{ secrets.GITHUB_TOKEN }}"
registry: ghcr.io
image_name: hello-world-push-on-push
push_image_and_stages: on:push