This commit is contained in:
vanhauser-thc 2022-06-13 19:52:13 +02:00
commit 72f5cfe67c
2 changed files with 11 additions and 36 deletions

View file

@ -1,8 +1,16 @@
name: release
on:
release: # Docs: <https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release>
types: [published]
push:
branches: [master, main]
tags-ignore: ['**']
paths-ignore: [README, TODO, PROBLEMS]
pull_request:
paths-ignore: [README, TODO, PROBLEMS]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
docker-image:
@ -28,7 +36,7 @@ jobs:
context: .
file: Dockerfile
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/arm64
build-args: HYDRA_VERSION="${{ steps.slug.outputs.version-semantic }}"
tags: vanhauser/hydra:latest

View file

@ -1,33 +0,0 @@
name: tests
on:
push:
branches: [master, main]
tags-ignore: ['**']
paths-ignore: [README, TODO, PROBLEMS]
pull_request:
paths-ignore: [README, TODO, PROBLEMS]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs: # Docs: <https://git.io/JvxXE>
docker-build:
name: Build the docker image
runs-on: ubuntu-20.04
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3 # Action page: <https://github.com/docker/build-push-action>
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm/v7
push: true
tags: hydra:ci