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

[SCSE-146] update deployment script (staging) #55

Merged
merged 1 commit into from
Feb 12, 2023
Merged
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
25 changes: 0 additions & 25 deletions .github/workflows/cd-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,11 @@ jobs:
ghcr.io/${{ github.repository_owner }}/website/cms:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/website/cms:latest

build-nginx-staging:
name: Build nginx Staging Image
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
file: ./deployments/staging/nginx/Dockerfile
context: ./deployments/staging/nginx
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/website/nginx-staging:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/website/nginx-staging:latest

deploy-to-staging:
name: Deploy To Staging
runs-on: ubuntu-22.04
needs:
- build-cms
- build-nginx-staging
steps:
- name: Deploy and run docker images
env:
Expand Down