Add Docker (#58)

This commit is contained in:
Hossin Asaadi
2022-11-16 19:06:32 +03:30
committed by GitHub
parent bb419976a7
commit abc67e8bd4
4 changed files with 24 additions and 6 deletions

View File

@@ -3,7 +3,12 @@ on:
push:
branches: [ master ]
workflow_dispatch:
inputs:
project:
description: 'Project'
required: true
default:
jobs:
build:
@@ -40,5 +45,5 @@ jobs:
docker buildx build \
--platform=linux/amd64,linux/arm64 \
--output "type=image,push=true" \
--file ${{ secrets.DOCKER_HUB_REPOSITORY }}/Dockerfile ./${{ secrets.DOCKER_HUB_REPOSITORY }} \
--tag ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPOSITORY }}:latest
--file ./Dockerfile ./ \
--tag $(echo "${DOCKERHUB_USERNAME}" | tr '[:upper:]' '[:lower:]')/${{ github.event.inputs.project }}:latest