Skip to content

Commit 22a7e2c

Browse files
committed
TEST: base push to local registry
check if arm builds are faster now
1 parent 5e802cb commit 22a7e2c

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
base-deploy:
3131
name: Base Deploy - ${{ matrix.idris-version }}
3232
# only deploy if it's a push to main
33-
if: github.event_name == 'schedule' || github.event_name == 'push'
33+
# if: github.event_name == 'schedule' || github.event_name == 'push'
3434
needs: [base-build-test]
3535
strategy:
3636
matrix:

.github/workflows/version-base-deploy.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
deploy-base:
1616
name: Deploy Base - ${{ inputs.idris-version }}
1717
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
1825
steps:
1926
- name: Checkout Repo
2027
uses: actions/checkout@v4
@@ -29,15 +36,17 @@ jobs:
2936
- name: Set up Docker Buildx
3037
uses: docker/setup-buildx-action@v3
3138
with:
39+
# since we're using a local registry
40+
driver-opts: network=host
3241
append: |
3342
- endpoint: ssh://${{ secrets.SSH_USER }}@${{ secrets.SSH_IP }}
3443
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 }}
4150

4251
- name: Docker meta
4352
id: create-meta
@@ -50,9 +59,12 @@ jobs:
5059
with:
5160
idris-version: ${{ inputs.idris-version }}
5261
push: true
53-
tags: ghcr.io/${{ github.repository }}/base:${{ inputs.idris-version }}
62+
tags: ${{ env.TAG }}
5463
labels: ${{ steps.create-meta.outputs.labels }}
5564
platforms: linux/amd64,linux/arm64
65+
66+
- name: Run docker image ls
67+
run: docker image ls
5668

5769
deploy-consumers:
5870
name: Deploy Consumer - ${{ matrix.dockerfile }} ${{ inputs.idris-version }}
@@ -96,4 +108,4 @@ jobs:
96108
IDRIS_VERSION=${{ inputs.idris-version }}
97109
BASE_IMG=ghcr.io/${{ github.repository }}/base:${{ inputs.idris-version }}
98110
tags: ghcr.io/${{ github.repository }}/${{ matrix.dockerfile }}:${{ inputs.idris-version }}
99-
push: true
111+
push: false

0 commit comments

Comments
 (0)