Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
chore: workflows (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Dec 18, 2023
1 parent e60749b commit c248a37
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
build-api:
name: Build API
runs-on: ubuntu-latest
steps:
- name: Use autodevops build and register
uses: socialgouv/workflows/actions/build-image@v1
with:
imagePackage: api
token: ${{ secrets.GITHUB_TOKEN }}
environment: prod
dockerfile: ./api/Dockerfile
dockercontext: ./api
dockerbuildargs: |
PRODUCTION=true
kontinuous:
name: "Deploy on Kubernetes 🐳"
needs: [build-api]
uses: socialgouv/workflows/.github/workflows/use-ks-gh-production.yaml@v1
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on:
workflow_dispatch:
push:
branches: [master, alpha, beta, next]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: socialgouv/workflows/actions/semantic-release@v1
with:
github-token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
author-name: ${{ secrets.SOCIALGROOVYBOT_NAME }}
author-email: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
8 changes: 8 additions & 0 deletions .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ api:
envFrom:
- secretRef:
name: api

jobs:
runs:
build-api:
use: build
with:
buildArgs:
PRODUCTION="true"

0 comments on commit c248a37

Please sign in to comment.