Skip to content

Commit

Permalink
group cicd together
Browse files Browse the repository at this point in the history
  • Loading branch information
lbernhard95 committed Oct 30, 2024
1 parent 3a8a2f1 commit 9a20e0a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 44 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,36 @@ permissions:
contents: read

jobs:
build:
name: scheduler
build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::082113759242:role/github_oidc_role
aws-region: eu-central-1
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22.11.0'

- name: Install Yarn
run: npm install -g [email protected]

- name: Install dependencies
working-directory: web
run: yarn install

- name: Build project
working-directory: web
run: yarn build

- name: Upload to S3
working-directory: web
run: |
aws s3 sync ./build s3://schafkopf-web-082113759242 --delete
build-scheduler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -29,7 +57,7 @@ jobs:
docker push 082113759242.dkr.ecr.eu-central-1.amazonaws.com/schafkopf-scheduler-lambda:latest
deploy:
runs-on: ubuntu-latest
needs: build
needs: build-scheduler
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/web.yml

This file was deleted.

0 comments on commit 9a20e0a

Please sign in to comment.