Add copy default dockerfile and docker directory

This commit is contained in:
2022-02-04 12:35:26 +03:00
parent 30aab55e59
commit 504cbcfdb4
2 changed files with 34 additions and 0 deletions

View File

@@ -19,6 +19,14 @@ on:
description: "Using for disable pushing to ECR if value is true."
required: true
type: boolean
IS_COPY_DOCKERFILE:
description: "Using for copy default dockerfile."
required: true
type: boolean
IS_COPY_DOCKER_DIRECTORY:
description: "Using for copy default docker directory (entrypoint, cron, healthcheck)."
required: true
type: boolean
secrets:
SECRET_GITHUB_TOKEN:
required: true
@@ -59,6 +67,14 @@ jobs:
GITHUB_USERNAME: ${{ secrets.SECRET_GITHUB_USERNAME }}
GITHUB_TOKEN: ${{ secrets.SECRET_GITHUB_TOKEN }}
- name: Copy docker directory
if: ${{ inputs.IS_COPY_DOCKER_DIRECTORY }}
run: cp -r /docker/api/docker ./
- name: Copy dockerfile
if: ${{ inputs.IS_COPY_DOCKERFILE }}
run: cp /docker/api/Dockerfile ./
- name: Login to Amazon ECR
if: ${{ inputs.ECR_PUSH_ENABLED }}
id: login-ecr