Skip to content

Commit

Permalink
Remove docker image push; add env file
Browse files Browse the repository at this point in the history
  • Loading branch information
SyzSteM committed Nov 12, 2024
1 parent 9a39c42 commit 5e9bd19
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ out/

### VS Code ###
.vscode/

.env
3 changes: 3 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POSTGRES_USER="wt"
POSTGRES_PASSWORD="wt"
POSTGRES_DB="wt_user_service"

0 comments on commit 5e9bd19

Please sign in to comment.