-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(PRE-COMMIT): support gettext translations
- Loading branch information
1 parent
4ec3db9
commit e5727d8
Showing
32 changed files
with
1,305 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../cicd-tools/boxes/0.1.0/libraries/gettext.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../cicd-tools/boxes/0.1.0/pre-commit/gettext-translations.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM debian:stable | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/cicd-tools-org/cicd-tools | ||
LABEL org.opencontainers.image.description="FOSS gettext binaries for CICD-Tools." | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && \ | ||
apt-get install \ | ||
-y \ | ||
--no-install-recommends \ | ||
gettext=0.* && \ | ||
apt-get clean && \ | ||
rm -rf /var/cache/apt/* && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /tmp/* | ||
|
||
RUN mkdir -p /mnt | ||
WORKDIR /mnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
143 changes: 143 additions & 0 deletions
143
.github/workflows/workflow-container-gettext-multiarch.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
--- | ||
name: cicd-tooling-github-workflow-container-gettext-multiarch | ||
|
||
on: | ||
push: | ||
paths: | ||
- ".cicd-tools/containers/gettext" | ||
- ".github/workflows/workflow-container-gettext-multiarch.yml" | ||
- ".github/workflows/job-*-container-*.yml" | ||
- "scripts/container.sh" | ||
schedule: | ||
- cron: "0 6 * * 1" | ||
workflow_dispatch: | ||
|
||
# secrets: | ||
# SLACK_WEBHOOK: | ||
# description: "Optional, enables Slack notifications." | ||
# required: false | ||
|
||
jobs: | ||
|
||
configuration: | ||
uses: ./.github/workflows/job-00-cookiecutter-read_configuration.yml | ||
|
||
start: | ||
secrets: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
uses: ./.github/workflows/job-00-generic-notification.yml | ||
with: | ||
NOTIFICATION_EMOJI: ":vertical_traffic_light:" | ||
NOTIFICATION_MESSAGE: "Multi-arch container build has started!" | ||
WORKFLOW_NAME: "gettext-container" | ||
|
||
security: | ||
needs: | ||
- configuration | ||
secrets: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
uses: ./.github/workflows/job-10-generic-security_scan_credentials.yml | ||
with: | ||
VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_VERBOSE_NOTIFICATIONS }} | ||
WORKFLOW_NAME: "gettext-container" | ||
|
||
scan: | ||
permissions: | ||
security-events: write | ||
needs: | ||
- configuration | ||
secrets: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- build-platform: linux/amd64 | ||
build-tag: linux-amd64 | ||
- build-platform: linux/arm64 | ||
build-tag: linux-arm64 | ||
max-parallel: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_CONCURRENCY }} | ||
uses: ./.github/workflows/job-10-container-security_scan_container.yml | ||
with: | ||
CONTEXT: .cicd-tools/containers/gettext | ||
FAIL_BUILD: true | ||
FAIL_THRESHOLD: "critical" | ||
FIXED_ONLY: true | ||
IMAGE_NAME: cicd-tools-org/cicd-tools-gettext | ||
IMAGE_TAG: ${{ matrix.build-tag }} | ||
PLATFORM: ${{ matrix.build-platform }} | ||
REQUIRES_QEMU: true | ||
VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_VERBOSE_NOTIFICATIONS }} | ||
WORKFLOW_NAME: "gettext-container" | ||
|
||
lint: | ||
needs: | ||
- configuration | ||
secrets: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
uses: ./.github/workflows/job-80-container-dockerfile_linter.yml | ||
with: | ||
DOCKERFILE: .cicd-tools/containers/gettext/Dockerfile | ||
VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_VERBOSE_NOTIFICATIONS }} | ||
WORKFLOW_NAME: "gettext-container" | ||
|
||
push: | ||
needs: | ||
- configuration | ||
- lint | ||
- scan | ||
- security | ||
- start | ||
permissions: | ||
packages: write | ||
secrets: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- build-platform: linux/amd64 | ||
build-tag: linux-amd64 | ||
- build-platform: linux/arm64 | ||
build-tag: linux-arm64 | ||
max-parallel: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_CONCURRENCY }} | ||
uses: ./.github/workflows/job-95-container-push.yml | ||
with: | ||
CONTEXT: .cicd-tools/containers/gettext | ||
IMAGE_NAME: cicd-tools-org/cicd-tools-gettext | ||
IMAGE_TAG: ${{ matrix.build-tag }} | ||
PLATFORM: ${{ matrix.build-platform }} | ||
REQUIRES_QEMU: true | ||
VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_VERBOSE_NOTIFICATIONS }} | ||
WORKFLOW_NAME: "gettext-container" | ||
|
||
multiarch: | ||
needs: | ||
- configuration | ||
- push | ||
permissions: | ||
packages: write | ||
secrets: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
uses: ./.github/workflows/job-95-container-multiarch.yml | ||
with: | ||
IMAGE_GIT: true | ||
IMAGE_LATEST: true | ||
IMAGE_NAME: cicd-tools-org/cicd-tools-gettext | ||
MULTIARCH_TAG: "multiarch" | ||
SOURCE_TAGS: | | ||
linux-amd64 | ||
linux-arm64 | ||
VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_VERBOSE_NOTIFICATIONS }} | ||
WORKFLOW_NAME: "gettext-container" | ||
|
||
success: | ||
needs: | ||
- multiarch | ||
secrets: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
uses: ./.github/workflows/job-00-generic-notification.yml | ||
with: | ||
NOTIFICATION_EMOJI: ":checkered_flag:" | ||
NOTIFICATION_MESSAGE: "Multi-arch container build has completed successfully!" | ||
WORKFLOW_NAME: "gettext-container" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
anchore | ||
codebase's | ||
gettext | ||
mac_maker | ||
tmate |
Oops, something went wrong.