+ Adding build stage for the docker image
Kinda yolo'ing this one but hey lets see
This commit is contained in:
parent
a0bf263014
commit
ef0981b68f
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ aws/infra/*.backup
|
||||
aws/infra/.terraform/providers/registry.terraform.io/hashicorp/aws/3.63.0/linux_amd64/terraform-provider-aws_v3.63.0_x5
|
||||
aws/infra/plan
|
||||
aws/infra/terraform.tfvars
|
||||
aws/playbooks/hosts
|
||||
|
@ -1,10 +1,10 @@
|
||||
image: rustlang/rust:nightly
|
||||
stages:
|
||||
- pages
|
||||
- build
|
||||
|
||||
# Builds out the intended zip package
|
||||
package:
|
||||
image: rustlang/rust:nightly
|
||||
stage: build
|
||||
script:
|
||||
- rustup default nightly-2021-09-18
|
||||
@ -20,6 +20,15 @@ package:
|
||||
paths:
|
||||
- build/
|
||||
|
||||
# Build the updated docker
|
||||
build-docker-image:
|
||||
stage: build
|
||||
image: docker:stable
|
||||
script:
|
||||
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin
|
||||
- docker build -t registry.gitlab.com/shockrah/clippable .
|
||||
- docker push registry.gitlab.com/shockrah/clippable
|
||||
|
||||
|
||||
|
||||
pages:
|
||||
@ -36,3 +45,8 @@ pages:
|
||||
artifacts:
|
||||
paths:
|
||||
- public/
|
||||
testing:
|
||||
image: alpine
|
||||
stage: build
|
||||
script:
|
||||
- echo $SOMEVAR
|
||||
|
Loading…
Reference in New Issue
Block a user