Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed all references to the staging deployment #876

Merged
merged 2 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/_restart-argocd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,5 @@ jobs:
run: curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 && chmod +x /usr/local/bin/argocd
- name: Restart ${{ inputs.deployment }} via the ArgoCD CLI
run: |
echo ${{ github.ref }}
if [[ ${{ github.ref }} == 'refs/heads/main' ]]; then
echo restarting the production deployment ${{ inputs.deployment }}
argocd app actions run navigatum-prod restart --kind Deployment --resource-name ${{ inputs.deployment }} --auth-token ${{ secrets.ARGOCD_TOKEN }} --server argocd.nav.tum.sexy
else
echo restarting the staging deployment ${{ inputs.deployment }}
argocd app actions run pr-${{github.event.number}} restart --kind Deployment --resource-name ${{ inputs.deployment }} --auth-token ${{ secrets.ARGOCD_TOKEN }} --server argocd.nav.tum.sexy
fi
echo restarting the deployment ${{ inputs.deployment }}
argocd app actions run navigatum-prod restart --kind Deployment --resource-name ${{ inputs.deployment }} --auth-token ${{ secrets.ARGOCD_TOKEN }} --server argocd.nav.tum.sexy
65 changes: 0 additions & 65 deletions .github/workflows/add-deployment.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/comment-staging-url.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/data-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
packages: write
data-deployment-1:
uses: ./.github/workflows/_restart-argocd.yml
if: ${{ github.ref }} == 'refs/heads/main'
needs:
- data-build
with:
Expand All @@ -63,6 +64,7 @@ jobs:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
data-deployment-2: # we need to restart the server, as otherwise it will not serve the new data
uses: ./.github/workflows/_restart-argocd.yml
if: ${{ github.ref }} == 'refs/heads/main'
needs:
- data-deployment-1
with:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/remove-deployment.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/server-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
packages: write
feedback-deployment:
uses: ./.github/workflows/_restart-argocd.yml
if: ${{ github.ref }} == 'refs/heads/main'
needs:
- server-build
with:
Expand All @@ -70,6 +71,7 @@ jobs:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
calendar-deployment:
uses: ./.github/workflows/_restart-argocd.yml
if: ${{ github.ref }} == 'refs/heads/main'
needs:
- server-build
with:
Expand All @@ -78,6 +80,7 @@ jobs:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
server-deployment:
uses: ./.github/workflows/_restart-argocd.yml
if: ${{ github.ref }} == 'refs/heads/main'
needs:
- server-build
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/webclient-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
packages: write
webclient-deployment:
uses: ./.github/workflows/_restart-argocd.yml
if: ${{ github.ref }} == 'refs/heads/main'
needs:
- webclient-build
with:
Expand Down
Loading