Skip to content

Commit

Permalink
fix(ghactions): fix ci/cd for k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
nicdub committed Jan 16, 2025
1 parent 89df169 commit cdccc53
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x
- run: npm ci
Expand All @@ -28,5 +28,5 @@ jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker-compose build --parallel
- uses: actions/checkout@v4
- run: docker compose build --parallel
20 changes: 0 additions & 20 deletions .github/workflows/deploy-k8s.yml

This file was deleted.

25 changes: 14 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
---
# https://github.com/EPFL-ENAC/github-actions-runner#readme
name: deploy-prod
# https://github.com/EPFL-ENAC/epfl-enac-build-push-deploy-action#readme
name: deploy

"on":
push:
branches:
- main
- dev
- test
- stage
tags: ["v*.*.*"]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: EPFL-ENAC/epfl-enac-deploy-action@main
with:
ENAC_IT4R_CD_environment: "prod"
ENAC_IT4R_CD_deployment_id: "alicelandings.epfl.ch"
ENAC_IT4R_CD_deployment_secret: ${{ secrets.DEPLOYMENT_PROD_SECRET }}
uses: EPFL-ENAC/epfl-enac-build-push-deploy-action/.github/workflows/deploy.yml@v2.0.0
secrets:
token: ${{ secrets.CD_TOKEN }}
with:
org: epfl-alice
repo: alicelandings
build_context: '["./frontend"]'

0 comments on commit cdccc53

Please sign in to comment.