1
0
mirror of https://github.com/hegerdes/gitlab-actions.git synced 2026-06-03 16:03:34 +02:00
Henrik Gerdes ad8d415449 docs: add buildkit link & snippet include example
Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
2026-06-01 21:33:00 +02:00
2026-05-26 23:26:04 +02:00
2026-05-26 23:26:04 +02:00
2024-07-09 19:53:01 +00:00
2023-12-22 23:45:58 +01:00
2023-12-22 22:23:05 +00:00
2024-01-06 19:14:27 +01:00

GitLab CI/CD Components

CI/CD Release

This repo contains a collection of different GitLab CI/CD Components and snippets to be included in the script section of a job.

Currently supported components are:

Currently supported snippets are:

  • debian-core-tools
  • alpine-core-tools
  • openssl-install
  • ssh-client-install
  • jq-install
  • git-install
  • kubectl-install
  • kubeseal-install
  • kubeconform-install
  • skopeo-install
  • cosign-install
  • talosctl-install
  • vault-install
  • helm-install
  • helm-docs-install
  • packer-install
  • kind-install
  • minikube-install
  • argocd-cli-install
  • terraform-install
  • opentofu-install
  • tflint-install
  • tailscale-install
  • minio-mc-install
  • yq-by-mike-farah-install
  • github-cli-install
  • azure-cli-install
  • aws-cli-install
  • aws-ssm-install
  • aws-ecr-credential-helper-install

Examples

NOTE: All components and snippets are arm64 ready. Gitlab now offers hosted ARM runners.
For more see .gitlab-ci.yml

Components

default:
  tags: [saas-linux-small-arm64]

# or by including as a template and setting it by extending the job
include:
  - component: gitlab.com/hegerdes/gitlab-actions/buildkit-build@<VERSION>
    inputs:
      as_job: .my-buildkit-build

my-buildkit-build:
  tags: [saas-linux-small-arm64]
  extends: .my-buildkit-build

Snippets

  - project: hegerdes/gitlab-actions
    file: .gitlab/ci/snippets.yml
  # Or
  - remote: https://gitlab.com/hegerdes/gitlab-actions/-/raw/main/.gitlab/ci/snippets.yml

snippets:
  image: alpine
  script:
    - echo "Running snippets on ${CI_RUNNER_EXECUTABLE_ARCH}..."
    - !reference [.snippets, debian-core-tools]
    - !reference [.snippets, alpine-core-tools]
    - !reference [.snippets, openssl-install]
    - !reference [.snippets, kubectl-install]
    - !reference [.snippets, kubeseal-install]
    - !reference [.snippets, kubeconform-install]

Releases

All releases follow the semantic versioning schema. So only major version bumps should include breaking changes. The main branch is NOT stable and may have broken components. Use a fixed tag or fork this repo if you dan't want your CI to break unexpectedly.
Releases are generated with CI and contain all mentionable changes.

Contribute

Feel free to open a issue or a PR. Any new CI tasks must have tests for them and must run on amd64 and arm64. Please read about CI/CD components and best practices at: https://docs.gitlab.com/ee/ci/components

S
Description
Collection of GitLab CI-CD-Catalog actions. Allows users to build Docker/OCI Container Images.
Readme BSD-2-Clause 218 KiB
Languages
Shell 90.6%
Go Template 6.4%
Python 2.7%
Dockerfile 0.3%