Skip to content

Commit

Permalink
Merge branch 'develop' into 519-env-variable-phone-number
Browse files Browse the repository at this point in the history
  • Loading branch information
nutfdt authored Aug 30, 2024
2 parents 0257485 + 18b3e08 commit 0573f56
Show file tree
Hide file tree
Showing 18 changed files with 200 additions and 669 deletions.
30 changes: 0 additions & 30 deletions .github/release-drafter.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/build-filebeat-rootless.yml

This file was deleted.

115 changes: 0 additions & 115 deletions .github/workflows/change-values-kube.yml

This file was deleted.

25 changes: 8 additions & 17 deletions .github/workflows/pr.yml → .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
name: CI for pr
name: Main CI
on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
push:
branches:
- develop

jobs:
tag-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Tag PR
uses: release-drafter/release-drafter@v5
with:
name: PR ${{ github.ref }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-backend:
name: Build Backend
runs-on: ubuntu-latest
Expand All @@ -34,7 +25,7 @@ jobs:
with:
context: ./backend
push: true
tags: ghcr.io/dnum-mi/basegun/basegun-backend:${{ github.head_ref }}
tags: ghcr.io/dnum-mi/basegun/basegun-backend:${{ github.head_ref || github.ref_name }}

build-frontend:
name: Build Frontend
Expand All @@ -53,14 +44,14 @@ jobs:
with:
context: ./frontend
push: true
tags: ghcr.io/dnum-mi/basegun/basegun-frontend:${{ github.head_ref }}
tags: ghcr.io/dnum-mi/basegun/basegun-frontend:${{ github.head_ref || github.ref_name }}

test-backend:
name: Test Backend
needs: build-backend
runs-on: ubuntu-latest
container:
image: ghcr.io/dnum-mi/basegun/basegun-backend:${{ github.head_ref }}
image: ghcr.io/dnum-mi/basegun/basegun-backend:${{ github.head_ref || github.ref_name }}
env:
AWS_REGION: gra
AWS_DEFAULT_REGION: gra
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
pull_request:
types:
- closed

jobs:
clean-registry:
name: Delete untagged images
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Delete from backend package
uses: vlaurin/action-ghcr-prune@main
with:
token: ${{ secrets.PERSO_ACCESS_TOKEN }}
organization: dnum-mi
container: basegun/basegun-backend
dry-run: false
prune-untagged: true
- name: Delete from frontend package
uses: vlaurin/action-ghcr-prune@main
with:
token: ${{ secrets.PERSO_ACCESS_TOKEN }}
organization: dnum-mi
container: basegun/basegun-frontend
dry-run: false
prune-untagged: true

67 changes: 0 additions & 67 deletions .github/workflows/preprod.yml

This file was deleted.

Loading

0 comments on commit 0573f56

Please sign in to comment.