31 lines
668 B
YAML
31 lines
668 B
YAML
name: Build release
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
DOCKER_REPOSITORY: "git.flifloo.fr"
|
|
DOCKER_TAG: "$DOCKER_REPOSITORY/$GITHUB_REPOSITORY:latest"
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: docker
|
|
using: docker:stable
|
|
|
|
services:
|
|
dind:
|
|
image: docker:stable-dind
|
|
options: "--privileged"
|
|
cmd: [ "dockerd", "-H", "tcp://0.0.0.0:2375", "--tls=false" ]
|
|
|
|
steps:
|
|
- if: login
|
|
run: "docker login -u $GITHUB_REPOSITORY_OWNER -p $GITHUB_TOKEN $DOCKER_REPOSITORY"
|
|
|
|
- id: build
|
|
run: "docker buildx build --platform linux/amd64 -t $DOCKER_TAG ."
|
|
|
|
- id: push
|
|
run: "docker push $DOCKER_TAG"
|
|
|
|
release:
|
|
runs-on: docker
|