Skip to content

CI / CD workflows

CI / CD workflows #8

Workflow file for this run

name: "Integration"
on:
pull_request:
types: [ opened, synchronize ]
push:
branches: [ 'main' ]
concurrency:
# Cancel old runs if there is a new commit in the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
# Checkout repository under $GITHUB_WORKSPACE path
- name: Repository checkout
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
- uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ github.job }}-${{ runner.os }}-buildx-base
restore-keys: |
${{ github.job }}-${{ runner.os }}-buildx-base
# Build docker image
- name: Build docker image
uses: docker/build-push-action@v4
with:
file: Dockerfile
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
if: always()
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache