mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-03-12 04:36:23 -07:00
39 lines
977 B
YAML
39 lines
977 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
branches: [master, main]
|
|
tags-ignore: ['**']
|
|
paths-ignore: [README, TODO, PROBLEMS]
|
|
pull_request:
|
|
paths-ignore: [README, TODO, PROBLEMS]
|
|
|
|
jobs:
|
|
docker-image:
|
|
name: Build the docker image
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: docker/setup-qemu-action@v2
|
|
|
|
- uses: docker/setup-buildx-action@v2
|
|
|
|
- uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- uses: gacts/github-slug@v1 # Action page: <https://github.com/gacts/github-slug>
|
|
id: slug
|
|
|
|
- uses: docker/build-push-action@v3 # Action page: <https://github.com/docker/build-push-action>
|
|
with:
|
|
context: .
|
|
file: Dockerfile
|
|
push: true
|
|
platforms: linux/amd64, linux/arm64
|
|
# ,linux/arm/v6, linux/arm/v7
|
|
tags: vanhauser/hydra:latest
|
|
|