Skip to content

Commit

Permalink
temporary block deploy & hardcode registry endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rthebaud committed Nov 29, 2023
1 parent 1302f49 commit db53194
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 33 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/admin-scw.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: ADMIN - Build Docker image & Deploy Scaleway

# on:
# push:
# branches:
# - main
# paths:
# - admin/**
# - packages/**

on:
push:
branches:
- main
paths:
- admin/**
- packages/**
- feat-1469

jobs:
lint:
Expand Down Expand Up @@ -55,13 +60,14 @@ jobs:
with:
username: nologin
password: ${{ secrets.SCW_SECRET_KEY }}
registry: ${{ secrets.SCW_CONTAINER_REGISTRY_ENDPOINT }}
# registry: ${{ secrets.SCW_CONTAINER_REGISTRY_ENDPOINT }}
registry: rg.fr-par.scw.cloud/funcscwsnutestvfku19oc
image_name: admin
dockerfile_path: admin/Dockerfile

- name: Scaleway container deploy
if: env.ACTIVE_HOSTING == 'scaleway'
uses: ./.github/actions/docker-scw-deploy
with:
secret_key: ${{ secrets.SCW_SECRET_KEY }}
container_id: ${{ secrets.SCW_ADMIN_CONTAINER_ID }}
# - name: Scaleway container deploy
# if: env.ACTIVE_HOSTING == 'scaleway'
# uses: ./.github/actions/docker-scw-deploy
# with:
# secret_key: ${{ secrets.SCW_SECRET_KEY }}
# container_id: ${{ secrets.SCW_ADMIN_CONTAINER_ID }}
28 changes: 17 additions & 11 deletions .github/workflows/api-scw.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: API - Build Docker image & Deploy Scaleway

# on:
# push:
# branches:
# - main
# paths:
# - api/**
# - packages/**

on:
push:
branches:
- main
paths:
- api/**
- packages/**
- feat-1469

jobs:
build_deploy:
Expand All @@ -32,13 +37,14 @@ jobs:
with:
username: nologin
password: ${{ secrets.SCW_SECRET_KEY }}
registry: ${{ secrets.SCW_CONTAINER_REGISTRY_ENDPOINT }}
# registry: ${{ secrets.SCW_CONTAINER_REGISTRY_ENDPOINT }}
registry: rg.fr-par.scw.cloud/funcscwsnutestvfku19oc
image_name: api
dockerfile_path: api/Dockerfile

- name: Scaleway container deploy
if: env.ACTIVE_HOSTING == 'scaleway'
uses: ./.github/actions/docker-scw-deploy
with:
secret_key: ${{ secrets.SCW_SECRET_KEY }}
container_id: ${{ secrets.SCW_API_CONTAINER_ID }}
# - name: Scaleway container deploy
# if: env.ACTIVE_HOSTING == 'scaleway'
# uses: ./.github/actions/docker-scw-deploy
# with:
# secret_key: ${{ secrets.SCW_SECRET_KEY }}
# container_id: ${{ secrets.SCW_API_CONTAINER_ID }}
28 changes: 17 additions & 11 deletions .github/workflows/app-scw.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: APP - Build Docker image & Deploy Scaleway

# on:
# push:
# branches:
# - main
# paths:
# - app/**
# - packages/**

on:
push:
branches:
- main
paths:
- app/**
- packages/**
- feat-1469

jobs:
lint:
Expand Down Expand Up @@ -55,13 +60,14 @@ jobs:
with:
username: nologin
password: ${{ secrets.SCW_SECRET_KEY }}
registry: ${{ secrets.SCW_CONTAINER_REGISTRY_ENDPOINT }}
# registry: ${{ secrets.SCW_CONTAINER_REGISTRY_ENDPOINT }}
registry: rg.fr-par.scw.cloud/funcscwsnutestvfku19oc
image_name: app
dockerfile_path: app/Dockerfile

- name: Scaleway container deploy
if: env.ACTIVE_HOSTING == 'scaleway'
uses: ./.github/actions/docker-scw-deploy
with:
secret_key: ${{ secrets.SCW_SECRET_KEY }}
container_id: ${{ secrets.SCW_APP_CONTAINER_ID }}
# - name: Scaleway container deploy
# if: env.ACTIVE_HOSTING == 'scaleway'
# uses: ./.github/actions/docker-scw-deploy
# with:
# secret_key: ${{ secrets.SCW_SECRET_KEY }}
# container_id: ${{ secrets.SCW_APP_CONTAINER_ID }}

0 comments on commit db53194

Please sign in to comment.