Skip to content

Commit 564339c

Browse files
authored
Merge pull request #642 from RNAcentral/store-cicd-docker-image-in-github-packages
Store cicd docker image in GitHub packages
2 parents 99ca97e + 508043a commit 564339c

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ manual_deployment_to_fallback:
101101

102102
manual_deployment_to_test:
103103
stage: deploy
104-
image:
105-
name: rnacentral/rnacentral-ci-cd
104+
image: ghcr.io/rnacentral/rna-central-ci-cd:3.20-alpine
106105
<<: [*deploy_steps, *variables_test]
107106
rules:
108107
- if: '$CI_PIPELINE_SOURCE == "web" && $DEPLOY == "test"'

Dockerfile-CI-CD

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
#-------------------------------------------------------------------------------
2+
# To avoid rate limit issues with GitLab and DockerHub, push the CI-CD image to GHCR.
3+
# Current GHCR limit:
4+
# - 100 pulls per 6 hours per IP address for anonymous users.
5+
# - Unlimited pulls for users authenticated with a GitHub account and a valid PAT
6+
#
7+
# Commands to build and push:
8+
#
9+
# docker buildx create --use
10+
# docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/rnacentral/ci-cd:3.20-alpine -f Dockerfile-CI-CD --push .
11+
#
12+
#-------------------------------------------------------------------------------
113
# Build container with kubectl and helm to be used by GitLab CI/CD
214

3-
ARG BUILDPLATFORM
4-
FROM ${BUILDPLATFORM}alpine:3.20
15+
FROM arm64v8/alpine:3.14
516

617
ARG TARGETOS
718
ARG TARGETARCH

0 commit comments

Comments
 (0)