misp-docker/.github/workflows/test-build-latest.yml

34 lines
864 B
YAML
Raw Normal View History

name: Build the Docker images
on:
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Initialize environment
2023-05-18 11:50:13 +02:00
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
2023-09-15 13:20:19 +02:00
sed -e '/^[[:space:]]*$/d' -e '/[#@]/d' -e 's/\"//g' -e 's/\(^[^=]*\)=\(.*\)/\1="\2"/' template.env > env.hcl
echo "DOCKER_IMG_TAG=`echo '${{ github.sha }}' | cut -c 1-7`" >> "$GITHUB_ENV"
echo "DOCKER_USERNAME=local" >> "$GITHUB_ENV"
- name: Build
uses: docker/bake-action@v4
with:
push: false
files: docker-bake.hcl, env.hcl