From 8ddf772b6d22fcd90dcca87261f262919a7baf84 Mon Sep 17 00:00:00 2001 From: Anton Zavodchikov Date: Wed, 16 Nov 2022 20:53:16 +0500 Subject: [PATCH 1/2] Update build.yml --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f296664..628567b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ name: Build and push on: + workflow_dispatch: push: branches: - 'master' @@ -12,6 +13,7 @@ env: jobs: docker: runs-on: ubuntu-latest + environment: production steps: - name: Checkout @@ -32,6 +34,11 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - + name: Put .env in sources + if: ${{ secrets.ENV_FILE != "" }} + run: | + printf "%s" "${{ secrets.ENV_FILE }}" > .env - name: Build and push uses: docker/build-push-action@v3 @@ -42,4 +49,4 @@ jobs: push: true platforms: linux/amd64 tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} From 6b39180e46fe9f755e32b082995ababf1c59f4e8 Mon Sep 17 00:00:00 2001 From: Anton Zavodchikov Date: Wed, 16 Nov 2022 20:55:28 +0500 Subject: [PATCH 2/2] Update build.yml --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 628567b..86b7edf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,6 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Put .env in sources - if: ${{ secrets.ENV_FILE != "" }} run: | printf "%s" "${{ secrets.ENV_FILE }}" > .env -