From 00b6c2ff8aa1b77a962bc85ba7a6d64602438e80 Mon Sep 17 00:00:00 2001 From: Samir Patel <48686912+54mir@users.noreply.github.com> Date: Wed, 20 Oct 2021 16:59:03 -0500 Subject: [PATCH] change dockerfile path --- .gitlab/.gitlab-ci.yml | 72 +++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 524ae1fbc..70f941f9c 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -7,7 +7,7 @@ variables: GOVERSION: "1.16.3" stages: - - test + # - test - build install lattice: @@ -90,55 +90,55 @@ build for linux amd64: paths: - featurebase_linux_amd64 -build for linux arm64: - stage: build - image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 - variables: - GOOS: "linux" - GOARCH: "arm64" - script: - - go build -o featurebase_linux_arm64 ./cmd/featurebase - artifacts: - paths: - - featurebase_linux_arm64 +# build for linux arm64: +# stage: build +# image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 +# variables: +# GOOS: "linux" +# GOARCH: "arm64" +# script: +# - go build -o featurebase_linux_arm64 ./cmd/featurebase +# artifacts: +# paths: +# - featurebase_linux_arm64 -build for darwin amd64: - stage: build - image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 - variables: - GOOS: "darwin" - GOARCH: "amd64" - script: - - go build -o featurebase_darwin_amd64 ./cmd/featurebase - artifacts: - paths: - - featurebase_darwin_amd64 +# build for darwin amd64: +# stage: build +# image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 +# variables: +# GOOS: "darwin" +# GOARCH: "amd64" +# script: +# - go build -o featurebase_darwin_amd64 ./cmd/featurebase +# artifacts: +# paths: +# - featurebase_darwin_amd64 -build for darwin arm64: - stage: build - image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 - variables: - GOOS: "darwin" - GOARCH: "arm64" - script: - - go build -o featurebase_darwin_arm64 ./cmd/featurebase - artifacts: - paths: - - featurebase_darwin_arm64 +# build for darwin arm64: +# stage: build +# image: registry.gitlab.com/molecula/featurebase/builder:0.0.3 +# variables: +# GOOS: "darwin" +# GOARCH: "arm64" +# script: +# - go build -o featurebase_darwin_arm64 ./cmd/featurebase +# artifacts: +# paths: +# - featurebase_darwin_arm64 # Build a Docker image with CI/CD and push to the GitLab registry. build container fb: image: docker:stable stage: build needs: - - "build for linux arm64" + - "build for linux amd64" tags: - shell before_script: - docker info script: - tag=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA - - docker build --build-arg GO_VERSION=$GOVERSION -t $tag . + - docker build --build-arg GO_VERSION=$GOVERSION -t $tag .gitlab/Dockerfile - docker push $tag - echo Created docker featurebase image with tag "$tag"