15
15
deploy-base :
16
16
name : Deploy Base - ${{ inputs.idris-version }}
17
17
runs-on : ubuntu-latest
18
+ services :
19
+ registry :
20
+ image : registry:2
21
+ ports :
22
+ - 5000:5000
23
+ env :
24
+ TAG : localhost:5000/base-${{ inputs.idris-version }}:latest
18
25
steps :
19
26
- name : Checkout Repo
20
27
uses : actions/checkout@v4
@@ -29,15 +36,17 @@ jobs:
29
36
- name : Set up Docker Buildx
30
37
uses : docker/setup-buildx-action@v3
31
38
with :
39
+ # since we're using a local registry
40
+ driver-opts : network=host
32
41
append : |
33
42
- endpoint: ssh://${{ secrets.SSH_USER }}@${{ secrets.SSH_IP }}
34
43
35
- - name : Login to GHCR
36
- uses : docker/login-action@v3
37
- with :
38
- registry : ghcr.io
39
- username : ${{ github.actor }}
40
- password : ${{ secrets.GITHUB_TOKEN }}
44
+ # - name: Login to GHCR
45
+ # uses: docker/login-action@v3
46
+ # with:
47
+ # registry: ghcr.io
48
+ # username: ${{ github.actor }}
49
+ # password: ${{ secrets.GITHUB_TOKEN }}
41
50
42
51
- name : Docker meta
43
52
id : create-meta
50
59
with :
51
60
idris-version : ${{ inputs.idris-version }}
52
61
push : true
53
- tags : ghcr.io/ ${{ github.repository }}/base:${{ inputs.idris-version }}
62
+ tags : ${{ env.TAG }}
54
63
labels : ${{ steps.create-meta.outputs.labels }}
55
64
platforms : linux/amd64,linux/arm64
65
+
66
+ - name : Run docker image ls
67
+ run : docker image ls
56
68
57
69
deploy-consumers :
58
70
name : Deploy Consumer - ${{ matrix.dockerfile }} ${{ inputs.idris-version }}
96
108
IDRIS_VERSION=${{ inputs.idris-version }}
97
109
BASE_IMG=ghcr.io/${{ github.repository }}/base:${{ inputs.idris-version }}
98
110
tags : ghcr.io/${{ github.repository }}/${{ matrix.dockerfile }}:${{ inputs.idris-version }}
99
- push : true
111
+ push : false
0 commit comments