Compare commits
11 commits
0f404c3335
...
2cebac5f7c
Author | SHA1 | Date | |
---|---|---|---|
|
2cebac5f7c | ||
|
c90ba65374 | ||
|
f296c69754 | ||
|
4ac1583bcb | ||
|
deaa49652f | ||
|
e565c1380a | ||
|
65304feb56 | ||
|
a299ab663f | ||
|
9a9ee411da | ||
|
3dfc34388c | ||
|
c06dc5a527 |
3 changed files with 27 additions and 15 deletions
11
.gitlab-ci.yml
Normal file
11
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
image:
|
||||||
|
name: gcr.io/kaniko-project/executor:debug
|
||||||
|
entrypoint: [""]
|
||||||
|
script:
|
||||||
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
||||||
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --destination $CI_REGISTRY_IMAGE:latest
|
|
@ -1,24 +1,25 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
publish:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
registry: registry.nulo.in
|
settings:
|
||||||
repo: registry.nulo.in/sutty/containers-gem-compiler
|
registry: registry.nulo.in
|
||||||
tags:
|
username: sutty
|
||||||
- ${ALPINE_VERSION}
|
repo: registry.nulo.in/sutty/containers-gem-compiler
|
||||||
- latest
|
cache_from: registry.nulo.in/sutty/containers-gem-compiler
|
||||||
build_args:
|
tags:
|
||||||
- ALPINE_VERSION=${ALPINE_VERSION}
|
- ${ALPINE_VERSION}
|
||||||
- BASE_IMAGE=registry.nulo.in/sutty/containers-sdk-ruby
|
- latest
|
||||||
cache_from: registry.nulo.in/sutty/containers-gem-compiler
|
build_args:
|
||||||
username: sutty
|
- ALPINE_VERSION=${ALPINE_VERSION}
|
||||||
|
- BASE_IMAGE=registry.nulo.in/sutty/containers-sdk-ruby
|
||||||
secrets:
|
secrets:
|
||||||
- docker_password
|
- docker_password
|
||||||
when:
|
when:
|
||||||
branch: antifascista
|
branch: antifascista
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
ALPINE_VERSION:
|
ALPINE_VERSION:
|
||||||
- 3.13.6
|
- 3.16.0
|
||||||
- 3.14.6
|
|
||||||
- 3.15.4
|
- 3.15.4
|
||||||
|
- 3.14.6
|
||||||
|
- 3.13.10
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
ARG BASE_IMAGE=sutty/sdk-ruby
|
|
||||||
ARG ALPINE_VERSION=3.13.6
|
ARG ALPINE_VERSION=3.13.6
|
||||||
|
ARG BASE_IMAGE=sutty/sdk-ruby
|
||||||
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
||||||
MAINTAINER "f <f@sutty.nl>"
|
MAINTAINER "f <f@sutty.nl>"
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ ENV EXTRA_PKGS=''
|
||||||
RUN id
|
RUN id
|
||||||
RUN gem env
|
RUN gem env
|
||||||
RUN ls -hal /usr/lib/ruby/gems/2.7.0
|
RUN ls -hal /usr/lib/ruby/gems/2.7.0
|
||||||
RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox mini_portile2 gem-compiler
|
RUN gem install --no-user-install --no-document --source https://rubygems.org geminabox gem-compiler
|
||||||
|
|
||||||
COPY ./gem-compiler.sh /usr/local/bin/gem-compiler
|
COPY ./gem-compiler.sh /usr/local/bin/gem-compiler
|
||||||
COPY ./bootstrap.sh /usr/local/bin/bootstrap
|
COPY ./bootstrap.sh /usr/local/bin/bootstrap
|
||||||
|
|
Loading…
Reference in a new issue