Update .forgejo/workflows/test-build.yaml
Release / test_build (push) Failing after 1s Details

Gertjan Krol 2023-09-01 21:05:26 +00:00
parent 6b314bee5d
commit f353f5428c
1 changed files with 30 additions and 12 deletions

View File

@ -7,20 +7,38 @@ on:
jobs:
test_build:
runs-on: ubuntu-latest
image: docker:dind
image: docker:latest
steps:
# - name: Install dependencies # not present in `docker` container
# run: apk add --no-cache git nodejs
- name: Install dependencies # not present in `docker` container
run: apk add --no-cache git nodejs
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: actions/docker-setup-buildx@v2
- name: Build and push
uses: actions/docker-build-push@v4
with:
push: true
tags: toolkit-test:${{ github.ref_name }}
# - name: Build container
# run: docker build . -t toolkit-test:${{ github.ref_name }}
- name: Build container
run: |
export DOCKER_HOST: tcp://docker-in-docker:2375
docker build . -t toolkit-test:${{ github.ref_name }}
- name: Inspect image
run: docker image inspect toolkit-test:${{ github.ref_name }}
# # - name: Install dependencies # not present in `docker` container
# # run: apk add --no-cache git nodejs
# - name: Check out repository
# uses: actions/checkout@v3
# - name: Set up Docker Buildx
# uses: actions/docker-setup-buildx@v2
# - name: Build and push
# uses: actions/docker-build-push@v4
# with:
# push: true
# tags: toolkit-test:${{ github.ref_name }}
# # - name: Build container
# # run: docker build . -t toolkit-test:${{ github.ref_name }}
# - name: Inspect image
# run: docker image inspect toolkit-test:${{ github.ref_name }}