Fix image-build: install docker-cli on runner host
This commit is contained in:
parent
7ce1d4c965
commit
7f7c3e1ebf
1 changed files with 10 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ on:
|
||||||
env:
|
env:
|
||||||
REGISTRY: forgejo.coulomb.social
|
REGISTRY: forgejo.coulomb.social
|
||||||
IMAGE_NAME: coulomb/forgejo-actions-probe
|
IMAGE_NAME: coulomb/forgejo-actions-probe
|
||||||
|
DOCKER_HOST: tcp://127.0.0.1:2375
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
image-build:
|
image-build:
|
||||||
|
|
@ -18,12 +19,16 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install docker CLI
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
apk add --no-cache docker-cli
|
||||||
|
docker version
|
||||||
|
|
||||||
- name: Login to Forgejo registry
|
- name: Login to Forgejo registry
|
||||||
uses: docker/login-action@v3
|
run: |
|
||||||
with:
|
set -eu
|
||||||
registry: ${{ env.REGISTRY }}
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${REGISTRY}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue