From 5e9bd19ba4a2c7399371033a34489b81e93eaf4e Mon Sep 17 00:00:00 2001 From: Timo Tabertshofer Date: Tue, 12 Nov 2024 15:23:34 +0100 Subject: [PATCH] Remove docker image push; add env file --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- .gitignore | 2 ++ example.env | 3 +++ 3 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 example.env diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3255a2f..1236308 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,17 +93,17 @@ jobs: - name: Stop docker-compose run: docker-compose down - build-and-push-docker: - needs: build-and-test - uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/docker-build-and-push.yml@main - with: - docker_image_tag: 'registry.digitalocean.com/do-ase-registry/user-service' - secrets: - DIGITALOCEAN_ACCESS_TOKEN: "${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}" - - restart-application: - needs: build-and-push-docker - uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/docker-compose-restart.yml@main - secrets: - DROPLET_IP_ADDRESS: "${{ secrets.DROPLET_IP_ADDRESS }}" - DROPLET_SSH_KEY: "${{ secrets.DROPLET_SSH_KEY }}" +# build-and-push-docker: +# needs: build-and-test +# uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/docker-build-and-push.yml@main +# with: +# docker_image_tag: 'registry.digitalocean.com/do-ase-registry/user-service' +# secrets: +# DIGITALOCEAN_ACCESS_TOKEN: "${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}" + +# restart-application: +# needs: build-and-push-docker +# uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/docker-compose-restart.yml@main +# secrets: +# DROPLET_IP_ADDRESS: "${{ secrets.DROPLET_IP_ADDRESS }}" +# DROPLET_SSH_KEY: "${{ secrets.DROPLET_SSH_KEY }}" diff --git a/.gitignore b/.gitignore index c2065bc..4c75e42 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,5 @@ out/ ### VS Code ### .vscode/ + +.env \ No newline at end of file diff --git a/example.env b/example.env new file mode 100644 index 0000000..422806c --- /dev/null +++ b/example.env @@ -0,0 +1,3 @@ +POSTGRES_USER="wt" +POSTGRES_PASSWORD="wt" +POSTGRES_DB="wt_user_service"