Skip to content

Update dependabot.yml #82

Update dependabot.yml

Update dependabot.yml #82

Workflow file for this run

name: tests
on:
push:
branches: [master, main]
tags-ignore: ['**']
pull_request: {}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs: # Docs: <https://git.io/JvxXE>
gitleaks:
name: GitLeaks
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: gacts/gitleaks@v1 # Action page: <https://github.com/gacts/gitleaks>
build:
name: Build & test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: make
- run: ldd ./mustpl && exit 1 || true
- run: make test
build-image:
name: Build docker image (${{ matrix.platform }})
runs-on: ubuntu-20.04
services:
registry:
image: registry:2
ports: ['5000:5000']
strategy:
fail-fast: false
matrix:
platform:
- linux/386
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64/v8
- linux/ppc64le
- linux/s390x
steps:
- uses: actions/checkout@v4
- {uses: gacts/github-slug@v1, id: slug}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with: {driver-opts: network=host}
- uses: docker/build-push-action@v5 # Action page: <https://github.com/docker/build-push-action>
with:
context: .
file: Dockerfile
push: true
platforms: ${{ matrix.platform }}
build-args: VERSION=${{ steps.slug.outputs.commit-hash-short }}
tags: localhost:5000/ci/app:latest
- if: matrix.platform == 'linux/amd64'
run: docker run --rm --platform "${{ matrix.platform }}" localhost:5000/ci/app:latest --help
- run: |
docker create --name app --platform "${{ matrix.platform }}" localhost:5000/ci/app:latest
docker cp app:/bin/mustpl ./mustpl
- {uses: gacts/github-slug@v1, id: filename, with: {to-slug: 'mustpl-${{ matrix.platform }}'}}
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.filename.outputs.slug }}
path: ./mustpl