File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 60
60
strategy:
61
61
matrix:
62
62
dockerfile: [ubuntu, debian]
63
- services:
64
- registry:
65
- image: registry:2
66
- ports:
67
- - 5000:5000
68
- env:
69
- # use local registry so we can reference the base image in another dockerfile
70
- # https://github.com/docker/build-push-action/issues/738
71
- BASE_TAG: localhost:5000/base-${{ inputs.idris-version }}:latest
72
63
steps:
73
64
- name: Checkout Repo
74
65
uses: actions/checkout@v3
87
78
registry: ghcr.io
88
79
username: ${{ github.actor }}
89
80
password: ${{ secrets.GITHUB_TOKEN }}
90
-
91
- - name: Build Base Image
92
- uses: ./.github/actions/build-base-img
93
- with:
94
- idris-version: ${{ inputs.idris-version }}
95
- push: true
96
- tags: ${{ env.BASE_TAG }}
97
81
98
82
- name: Docker meta
99
83
id: create-meta
109
93
file: ${{ matrix.dockerfile }}.Dockerfile
110
94
build-args: |
111
95
IDRIS_VERSION=${{ inputs.idris-version }}
112
- BASE_IMG=${{ env.BASE_TAG }}
96
+ BASE_IMG=ghcr.io/ ${{ github.repository }}/base:${{ inputs.idris-version }}
113
97
tags: ghcr.io/${{ github.repository }}/${{ matrix.dockerfile }}:${{ inputs.idris-version }}
114
98
push: true
Original file line number Diff line number Diff line change @@ -51,13 +51,15 @@ jobs:
51
51
uses: docker/metadata-action@v4
52
52
with:
53
53
images: ${{ github.repository }}/devcontainer
54
-
54
+
55
55
- name: Build Devcontainer
56
56
uses: ./.github/actions/build-devcontainer-img
57
57
with:
58
58
idris-lsp-version: ${{ inputs.idris-lsp-version }}
59
59
idris-version: ${{ inputs.idris-version }}
60
60
push: true
61
61
tags: ghcr.io/${{ github.repository }}/base:${{ inputs.idris-lsp-version }}
62
+ labels: ${{ steps.create-meta.outputs.labels }}
62
63
base-tag: ghcr.io/joshuanianji/idris-2-docker/base:${{ inputs.idris-version }}
64
+ platforms: linux/arm64,linux/amd64
63
65
You can’t perform that action at this time.
0 commit comments