Docker #200
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "Tag" | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker login | |
run: | | |
docker login -u ${{secrets.DOCKER_USER}} -p ${{secrets.DOCKER_PASSWORD}} | |
- name: Docker builder | |
run: | | |
docker buildx use $(docker buildx create --platform linux/amd64,linux/arm64,linux/arm/v8) | |
- name: Build & Push | |
run: | | |
docker buildx build --file Dockerfile --platform linux/amd64,linux/arm64,linux/arm/v8 --output "type=image,push=true" --tag leantime/leantime:${{ github.event.inputs.tag }} . | |