Skip to content

Commit

Permalink
chore: attempt to use Scaleway Container registry
Browse files Browse the repository at this point in the history
Pulls from ghcr.io seem to be awfully slow from Scaleway instances
(more than 10 minutes to pull the pipeline image).
Let's see if it's worth changing the registry.
  • Loading branch information
jonathanperret committed Oct 12, 2023
1 parent 09dee3c commit 69be53a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
service: ["api", "datawarehouse", "pipeline"]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-${{ matrix.service }}
REGISTRY: rg.fr-par.scw.cloud/data-inclusion
IMAGE_NAME: ${{ github.event.repository.name }}-${{ matrix.service }}

permissions:
contents: read
Expand All @@ -39,8 +39,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: nologin
password: ${{ secrets.SCALEWAY_REGISTRY_SECRET_KEY }}

- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down
6 changes: 3 additions & 3 deletions deployment/modules/stack_data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ services:

airflow-scheduler:
<<: *airflow-common
image: ghcr.io/betagouv/data-inclusion-pipeline:${STACK_VERSION}
image: rg.fr-par.scw.cloud/data-inclusion/data-inclusion-pipeline:${STACK_VERSION}
command: scheduler
restart: always
healthcheck:
Expand All @@ -111,7 +111,7 @@ services:
condition: service_completed_successfully

datawarehouse:
image: ghcr.io/betagouv/data-inclusion-datawarehouse:${STACK_VERSION}
image: rg.fr-par.scw.cloud/data-inclusion/data-inclusion-datawarehouse:${STACK_VERSION}
restart: always
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${DATAWAREHOUSE_DI_USERNAME}"]
Expand All @@ -127,7 +127,7 @@ services:
- datawarehouse-data:/var/lib/postgresql/data

api:
image: ghcr.io/betagouv/data-inclusion-api:${STACK_VERSION}
image: rg.fr-par.scw.cloud/data-inclusion/data-inclusion-api:${STACK_VERSION}
depends_on:
- datawarehouse
restart: always
Expand Down

0 comments on commit 69be53a

Please sign in to comment.