diff --git a/.drone.yml b/.drone.yml index 382f581..c086618 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,13 @@ +--- +kind: secret +name: REGISTRY_PASSWORD +data: KfwWUQN54AA9BJakPJPagNNAS60amR1Iknerx0jESiupz+W+zn7EoEo4WMmXJVu043AxPcCbGlFN+KTmt8eyAOyXqWK3zMUoBXHYaPQa + +--- +kind: secret +name: REGISTRY_USER +data: DbrlPJuIlZPS9A/GYlSP0Og/SFJY8flEgEFrebtCa/AnOg== + --- kind: pipeline type: docker @@ -14,13 +24,25 @@ steps: - git submodule update --init - (cd themes/hugo-theme-lowtech && npm i) - npm run build - - docker version when: branch: - master event: - push +- name: docker + image: plugins/docker + settings: + username: + from_secret: REGISTRY_USER + password: + from_secret: REGISTRY_PASSWORD + repo: registry.lamelio.fr/kosssi/histoiredunpied + registry: registry.lamelio.fr + auto_tag: true + tags: + - latest + - name: logs image: node:12.16.1 commands: @@ -30,17 +52,3 @@ steps: - cron cron: - nightly - ---- -kind: pipeline -type: exec -name: test - -platform: - os: linux - arch: arm - -steps: -- name: greeting - commands: - - echo hello world diff --git a/Dockerfile b/Dockerfile index 8dc0aab..c2ada0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM kosssi/nginx-lowtech:0.0.2 +FROM registry.lamelio.fr/kosssi/nginx-lowtech:0.0.2 # Copie des sources du site COPY public /usr/share/nginx/html diff --git a/docker-compose.yml b/docker-compose.yml index 0437459..898b212 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ volumes: services: histoiredunpied: container_name: ${NAME} - image: mattermost.lamelio.fr/kosssi/histoiredunpied + image: registry.lamelio.fr/kosssi/histoiredunpied environment: - TZ=${TIMEZONE} volumes: