From 781354b79765f9f150c8c85b678042e3fb7c0f29 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 12 Sep 2020 14:53:22 +0100 Subject: [PATCH] Remove unnecessary env file additions Because the env file is passed in directly, the build scripts will deal with exporting it --- .github/workflows/deploy.yml | 2 +- docker-compose.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0d85c1b..18f2ecb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: run: env >> .env - name: Build production container - run: docker build --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/theorangeone.net:latest --env-file .env . + run: docker build --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/theorangeone.net:latest . - name: Log into GitHub Docker Registry run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY%/*} --password-stdin diff --git a/docker-compose.yml b/docker-compose.yml index 5f5e66d..55074e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,6 @@ services: website: build: context: . - env_file: .env volumes: - "./public:/usr/share/nginx/html:ro" - "./nginx.conf:/etc/nginx/nginx.conf:ro"