Skip to content

Commit 508043a

Browse files
committed
updated yaml to use github package
1 parent c04e449 commit 508043a

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
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: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,22 @@
1212
#-------------------------------------------------------------------------------
1313
# Build container with kubectl and helm to be used by GitLab CI/CD
1414

15-
FROM rna-central-ci-cd:3.20-alpine
15+
FROM arm64v8/alpine:3.14
16+
17+
ARG TARGETOS
18+
ARG TARGETARCH
19+
20+
# Use kubectl version v1.23.8 and helm version v3.16.1
21+
RUN apk -U upgrade \
22+
&& apk add --no-cache ca-certificates bash git openssh curl gettext jq \
23+
&& wget -q https://dl.k8s.io/release/v1.23.8/bin/${TARGETOS}/${TARGETARCH}/kubectl -O /usr/local/bin/kubectl \
24+
&& wget -q https://get.helm.sh/helm-v3.16.1-${TARGETOS}-${TARGETARCH}.tar.gz -O - | tar -xzO ${TARGETOS}-${TARGETARCH}/helm > /usr/local/bin/helm \
25+
&& chmod +x /usr/local/bin/helm /usr/local/bin/kubectl \
26+
&& mkdir /config \
27+
&& chmod g+rwx /config /root \
28+
&& kubectl version --client \
29+
&& helm version
30+
31+
WORKDIR /config
32+
33+
CMD bash

0 commit comments

Comments
 (0)