This commit is contained in:
Neale Pickett 2021-10-19 17:22:11 -06:00
parent e05bc90b3a
commit 362ba11cf5
3 changed files with 9 additions and 6 deletions

View File

@ -15,12 +15,14 @@ test:
push:
stage: push
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
name: docker:19.03.12
rules:
- if: $CI_COMMIT_TAG
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
script:
- mkdir -p /kaniko/.docker
- echo "$DOCKER_AUTH_CONFIG" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/build/package/Containerfile --destination ghcr.io/dirtbags/moth:$CI_COMMIT_REF_SLUG
- echo "$DOCKER_AUTH_CONFIG" > !~.docker/config.json
- >
docker build
--tag ghcr.io/dirtbags/moth:$CI_COMMIT_REF_SLUG
--file build/package/Containerfile
.

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Many error messages were changed to start with a lower-case letter,
in order to satisfy a new linter check.
- CI/CD moved to our Cyber Fire Gitlab instance
## [v4.2.2] - 2021-09-30
### Added

View File

@ -7,7 +7,7 @@ COPY example-puzzles /target/puzzles/
COPY LICENSE.md /target/
RUN mkdir -p /target/state
WORKDIR /src/
RUN CGO_ENABLED=0 GOOS=linux go install -i -a -ldflags '-extldflags "-static"' ./...
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./...
# I can't use /target/bin: doing so would cause the devel server to overwrite Ubuntu's /bin
##########