2023-05-28 19:19:06 +00:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_build:
|
|
|
|
runs-on: ubuntu-latest
|
2023-09-01 21:09:19 +00:00
|
|
|
container: docker:dind
|
2023-05-28 19:19:06 +00:00
|
|
|
steps:
|
2023-09-01 21:09:02 +00:00
|
|
|
- name: Install dependencies # not present in `docker` container
|
|
|
|
run: apk add --no-cache git nodejs
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v3
|
2023-09-01 21:09:55 +00:00
|
|
|
- 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 }}
|
2023-09-01 21:05:26 +00:00
|
|
|
|
|
|
|
|
2023-09-01 21:08:24 +00:00
|
|
|
# - name: Set Docker host
|
|
|
|
# run: export DOCKER_HOST=tcp://docker-in-docker:2375
|
2023-09-01 21:07:53 +00:00
|
|
|
- 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: Inspect image
|
|
|
|
run: docker image inspect toolkit-test:${{ github.ref_name }}
|