Skip to content

Commit

Permalink
Small change: not automated workflow for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritzs committed Mar 11, 2025
1 parent d244fe2 commit cc011a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Deploy to development

on:
push:
branches:
- main
on: workflow_dispatch

jobs:
deploy-dev:
Expand All @@ -23,12 +20,12 @@ jobs:
- name: Check environment variables
run: env

# Stop and remove existing Docker containers
# Remove existing docker containers
- name: Stop and remove existing containers
run: |
sudo docker compose down || true
# Pull the latest Docker images (if using remote images)
# Pull the latest Docker images
- name: Pull latest Docker images
run: sudo docker compose pull || true

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy nginx configuration to TDT4242 server

on:
push:
branches:
- main
# push:
# branches:
# - main
workflow_dispatch:

jobs:
Expand All @@ -14,6 +14,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# This is bad practise as environment variables should be stored in a secure location, but hey it works now.
# Can be fixed through utilizing predefined custom workflow, or github runners-secrets
- name: Export environment variables
run: |
export GROUP_ID="05"
Expand Down

0 comments on commit cc011a4

Please sign in to comment.