Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .woodpecker/build-latest-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ when:
evaluate: 'CI_COMMIT_TARGET_BRANCH != "main"'

variables:
- &registry_url "https://registry.cloud.josa.ngo"
- &docker_repo "registry.cloud.josa.ngo/library/community-web"
- &slack_channel "builds"
- &registry_url 'https://registry.cloud.josa.ngo'
- &docker_repo 'registry.cloud.josa.ngo/library/community-web'
- &slack_channel 'builds'
# Success message template
- &success_message >
✅ *SUCCESS* - Latest Build #{{ build.number }}
Expand Down Expand Up @@ -38,8 +38,8 @@ steps:
- name: run-pre-commit-hooks
image: registry.cloud.josa.ngo/library/pre-commit-runner
settings:
args: "--all-files"
skip: "end-of-file-fixer, yamllint, no-commit-to-branch"
args: '--all-files'
skip: 'end-of-file-fixer, yamllint, no-commit-to-branch'

# Build latest image (development and other branches)
- name: build-latest-image
Expand All @@ -49,22 +49,22 @@ steps:
registry: *registry_url
dockerfile: ./Dockerfile
tags:
- ${CI_COMMIT_SHA:-latest}
- latest-${CI_COMMIT_SHA}
- latest
username:
from_secret: REGISTRY_USERNAME
password:
from_secret: REGISTRY_SECRET
build_args:
CI_REPO: "${CI_REPO}"
CI_REPO_NAME: "${CI_REPO_NAME}"
CI_REPO_URL: "${CI_REPO_URL}"
CI_COMMIT_SHA: "${CI_COMMIT_SHA}"
CI_COMMIT_REF: "${CI_COMMIT_REF}"
CI_PIPELINE_URL: "${CI_PIPELINE_URL}"
CI_PIPELINE_CREATED: "${CI_PIPELINE_CREATED}"
CI_PREV_PIPELINE_URL: "${CI_PREV_PIPELINE_URL}"
CI_PIPELINE_NUMBER: "${CI_PIPELINE_NUMBER}"
CI_REPO: '${CI_REPO}'
CI_REPO_NAME: '${CI_REPO_NAME}'
CI_REPO_URL: '${CI_REPO_URL}'
CI_COMMIT_SHA: '${CI_COMMIT_SHA}'
CI_COMMIT_REF: '${CI_COMMIT_REF}'
CI_PIPELINE_URL: '${CI_PIPELINE_URL}'
CI_PIPELINE_CREATED: '${CI_PIPELINE_CREATED}'
CI_PREV_PIPELINE_URL: '${CI_PREV_PIPELINE_URL}'
CI_PIPELINE_NUMBER: '${CI_PIPELINE_NUMBER}'

depends_on:
- run-pre-commit-hooks
Expand Down
30 changes: 15 additions & 15 deletions .woodpecker/build-stable-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ when:
exclude: [main]

variables:
- &registry_url "https://registry.cloud.josa.ngo"
- &docker_repo "registry.cloud.josa.ngo/library/community-web"
- &slack_channel "builds"
- &registry_url 'https://registry.cloud.josa.ngo'
- &docker_repo 'registry.cloud.josa.ngo/library/community-web'
- &slack_channel 'builds'
# Success message template
- &success_message >
✅ *SUCCESS* - Stable Build #{{ build.number }}
Expand Down Expand Up @@ -39,8 +39,8 @@ steps:
- name: run-pre-commit-hooks
image: registry.cloud.josa.ngo/library/pre-commit-runner
settings:
args: "--all-files"
skip: "end-of-file-fixer, yamllint, no-commit-to-branch"
args: '--all-files'
skip: 'end-of-file-fixer, yamllint, no-commit-to-branch'

# Build stable image (main branch only)
- name: build-stable-image
Expand All @@ -50,22 +50,22 @@ steps:
registry: *registry_url
dockerfile: ./Dockerfile
tags:
- ${CI_COMMIT_SHA:-latest}
- stable-${CI_COMMIT_SHA}
- stable
username:
from_secret: REGISTRY_USERNAME
password:
from_secret: REGISTRY_SECRET
build_args:
CI_REPO: "${CI_REPO}"
CI_REPO_NAME: "${CI_REPO_NAME}"
CI_REPO_URL: "${CI_REPO_URL}"
CI_COMMIT_SHA: "${CI_COMMIT_SHA}"
CI_COMMIT_REF: "${CI_COMMIT_REF}"
CI_PIPELINE_URL: "${CI_PIPELINE_URL}"
CI_PIPELINE_CREATED: "${CI_PIPELINE_CREATED}"
CI_PREV_PIPELINE_URL: "${CI_PREV_PIPELINE_URL}"
CI_PIPELINE_NUMBER: "${CI_PIPELINE_NUMBER}"
CI_REPO: '${CI_REPO}'
CI_REPO_NAME: '${CI_REPO_NAME}'
CI_REPO_URL: '${CI_REPO_URL}'
CI_COMMIT_SHA: '${CI_COMMIT_SHA}'
CI_COMMIT_REF: '${CI_COMMIT_REF}'
CI_PIPELINE_URL: '${CI_PIPELINE_URL}'
CI_PIPELINE_CREATED: '${CI_PIPELINE_CREATED}'
CI_PREV_PIPELINE_URL: '${CI_PREV_PIPELINE_URL}'
CI_PIPELINE_NUMBER: '${CI_PIPELINE_NUMBER}'

depends_on:
- run-pre-commit-hooks
Expand Down
Loading