From 585f9c36e1edf947c9fe180c48a3e810ea758bfc Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 16 May 2022 11:16:21 +0300 Subject: [PATCH] Add `.dockerignore`, transfer dockerfile to deploy folder --- .dockerignore | 9 +++++++++ .github/workflows/prod.yml | 2 +- Dockerfile => deploy/Dockerfile | 0 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .dockerignore rename Dockerfile => deploy/Dockerfile (100%) diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6533d6b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +.git/ +.vscode/ +.idea/ +.github/ +Backend/ +deploy/ +!deploy/*.conf +**/*.md +docker-compose*.yml diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 0960731..387a72d 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v2 - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME + run: docker build . --file deploy/Dockerfile --tag $IMAGE_NAME - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin diff --git a/Dockerfile b/deploy/Dockerfile similarity index 100% rename from Dockerfile rename to deploy/Dockerfile