Skip to content

Commit

Permalink
ci: 🔥 remove ci related to new tag which is not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Jul 17, 2024
1 parent ceaaa46 commit 358d60d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 63 deletions.
124 changes: 62 additions & 62 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,67 +20,67 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: make build-prod
- name: Test running the docker containers
run: |
make up-prod
./infra/scripts/test-alive.sh localhost
make down-prod
- name: Login to GHCR
if: success()
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push on GHCR
if: success()
run: |
make push
make push-latest
- name: Delete untagged images
uses: vlaurin/action-ghcr-prune@main
with:
token: ${{ secrets.PERSO_ACCESS_TOKEN }}
organization: dnum-mi
container: basegun/basegun-backend
dry-run: false
untagged: true
- name: Delete untagged images
uses: vlaurin/action-ghcr-prune@main
with:
token: ${{ secrets.PERSO_ACCESS_TOKEN }}
organization: dnum-mi
container: basegun/basegun-frontend
dry-run: false
untagged: true
# build-push:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Build the Docker image
# run: make build-prod
# - name: Test running the docker containers
# run: |
# make up-prod
# ./infra/scripts/test-alive.sh localhost
# make down-prod
# - name: Login to GHCR
# if: success()
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Push on GHCR
# if: success()
# run: |
# make push
# make push-latest
# - name: Delete untagged images
# uses: vlaurin/action-ghcr-prune@main
# with:
# token: ${{ secrets.PERSO_ACCESS_TOKEN }}
# organization: dnum-mi
# container: basegun/basegun-backend
# dry-run: false
# untagged: true
# - name: Delete untagged images
# uses: vlaurin/action-ghcr-prune@main
# with:
# token: ${{ secrets.PERSO_ACCESS_TOKEN }}
# organization: dnum-mi
# container: basegun/basegun-frontend
# dry-run: false
# untagged: true

deploy-prod:
uses: ./.github/workflows/change-values-kube.yml
needs: build-push
with:
branch: main
namespace: basegun-prod
domain: basegun.fr
secrets:
API_OVH_TOKEN: ${{ secrets.API_OVH_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
JOB_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KUBECONFIG: ${{ secrets.PREPROD_K8_CONFIG }}
X_OVH_TOKEN: ${{ secrets.PREPROD_OVH_TOKEN }}
# deploy-prod:
# uses: ./.github/workflows/change-values-kube.yml
# needs: build-push
# with:
# branch: main
# namespace: basegun-prod
# domain: basegun.fr
# secrets:
# API_OVH_TOKEN: ${{ secrets.API_OVH_TOKEN }}
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# JOB_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# KUBECONFIG: ${{ secrets.PREPROD_K8_CONFIG }}
# X_OVH_TOKEN: ${{ secrets.PREPROD_OVH_TOKEN }}

test:
runs-on: ubuntu-latest
needs: deploy-prod
steps:
- uses: actions/checkout@v2
- name: Test DNS
if: success()
run : |
./infra/scripts/test-alive.sh basegun.fr
# test:
# runs-on: ubuntu-latest
# needs: deploy-prod
# steps:
# - uses: actions/checkout@v2
# - name: Test DNS
# if: success()
# run : |
# ./infra/scripts/test-alive.sh basegun.fr
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL := /bin/bash
DOCKER := $(shell type -p docker)
DC := ${DOCKER} compose
TAG := 3.3
TAG := 4.0.0
APP_NAME := basegun
REG := ghcr.io
ORG := dnum-mi
Expand Down

0 comments on commit 358d60d

Please sign in to comment.