Skip to content
Snippets Groups Projects
Commit 551569c2 authored by Yana Kernerman's avatar Yana Kernerman Committed by Yana Kernerman
Browse files

trigger pipeline

parent c1cd8fad
No related branches found
No related tags found
1 merge request!23Tut01 test exercise
...@@ -47,7 +47,7 @@ job_build_and_publish_image: ...@@ -47,7 +47,7 @@ job_build_and_publish_image:
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script: script:
- echo "Publishing artifact..." - echo "Publishing artifact ..."
- ls -al - ls -al
- docker build -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" . - docker build -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
......
## 1. Basisimage auswählen
FROM golang:1.21
# Set the working directory inside the container
WORKDIR /app
# Copy go.mod and go.sum files first to cache dependencies
COPY go.mod go.sum ./
# Copy the rest of the application code
COPY . .
RUN go build -o artifact.bin ./*.go
# Set environment variables
ENV HOST=0.0.0.0
# Expose the port the application runs on
EXPOSE 8080
CMD ["./artifact.bin"]
RUN echo 'hello world'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment