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
25
18
steps :
26
19
- name : Checkout Repo
27
20
uses : actions/checkout@v4
@@ -36,17 +29,15 @@ jobs:
36
29
- name : Set up Docker Buildx
37
30
uses : docker/setup-buildx-action@v3
38
31
with :
39
- # since we're using a local registry
40
- driver-opts : network=host
41
32
append : |
42
33
- endpoint: ssh://${{ secrets.SSH_USER }}@${{ secrets.SSH_IP }}
43
34
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 }}
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 }}
50
41
51
42
- name : Docker meta
52
43
id : create-meta
59
50
with :
60
51
idris-version : ${{ inputs.idris-version }}
61
52
push : true
62
- tags : ${{ env.TAG }}
53
+ tags : ghcr.io/ ${{ github.repository }}/base:${{ inputs.idris-version }}
63
54
labels : ${{ steps.create-meta.outputs.labels }}
64
55
platforms : linux/amd64,linux/arm64
65
-
66
- - name : Run docker image ls
67
- run : docker image ls
68
56
69
57
deploy-consumers :
70
58
name : Deploy Consumer - ${{ matrix.dockerfile }} ${{ inputs.idris-version }}
108
96
IDRIS_VERSION=${{ inputs.idris-version }}
109
97
BASE_IMG=ghcr.io/${{ github.repository }}/base:${{ inputs.idris-version }}
110
98
tags : ghcr.io/${{ github.repository }}/${{ matrix.dockerfile }}:${{ inputs.idris-version }}
111
- push : false
99
+ push : true
0 commit comments