Skip to content
Snippets Groups Projects
Commit 92a17d21 authored by Yana Kernerman's avatar Yana Kernerman
Browse files

trigger pipeline

parent 7a0a7342
No related branches found
No related tags found
No related merge requests found
Pipeline #68438 failed
......@@ -47,7 +47,7 @@ job_build_and_publish_image:
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- echo "Publishing artifact..."
- echo "Publishing artifact ..."
- ls -al
- docker build -t "$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