- entry point fixes for 1.6.0 - correctly override BUILD_VERSION argument - manual release workflow
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Publish Docker image on Push to Master
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'pkg/**'
|
|
- 'cmd/**'
|
|
- 'plugins/**'
|
|
- 'docker/docker_start.sh'
|
|
- 'docker/config.yaml'
|
|
- '.github/workflows/publish_docker-master.yml'
|
|
- '.github/workflows/publish-docker.yml'
|
|
- 'Dockerfile'
|
|
- 'Dockerfile.debian'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- 'Makefile'
|
|
|
|
jobs:
|
|
dev-alpine:
|
|
uses: ./.github/workflows/publish-docker.yml
|
|
with:
|
|
platform: linux/amd64
|
|
crowdsec_version: ""
|
|
image_version: dev
|
|
latest: false
|
|
push: true
|
|
slim: false
|
|
debian: false
|
|
secrets:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
dev-debian:
|
|
uses: ./.github/workflows/publish-docker.yml
|
|
with:
|
|
platform: linux/amd64
|
|
crowdsec_version: ""
|
|
image_version: dev
|
|
latest: false
|
|
push: true
|
|
slim: false
|
|
debian: true
|
|
secrets:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|