Compare commits

..

10 Commits

Author SHA1 Message Date
a428846708 Add .drone.yml 2022-10-26 16:15:35 +02:00
3ab2bb4c1f Add .drone.yml
Some checks reported errors
continuous-integration/drone Build encountered an error
2022-10-26 11:25:53 +02:00
34f9ca51b7 Merge pull request 'Configure Renovate' (#1) from renovate/configure into main
Reviewed-on: https://git.front.kjuulh.io/kjuulh/cuddle-go-plan/pulls/1
2022-10-25 21:00:40 +00:00
f56817f753 Add renovate.json 2022-10-25 20:46:52 +00:00
08a6b4dda7 with go plan 2022-09-12 22:19:31 +02:00
7d8722d995 all tags last 2022-08-21 16:54:09 +02:00
72a685799c removed target 2022-08-21 16:51:52 +02:00
1d8b1e8613 with all tags 2022-08-21 16:50:31 +02:00
4aff68be93 remember to pull before 2022-08-21 16:45:28 +02:00
22e7fbf274 better tagging 2022-08-21 16:44:06 +02:00
6 changed files with 19 additions and 12 deletions

9
.drone.yml Executable file
View File

@@ -0,0 +1,9 @@
kind: pipeline
type: docker
name: "test"
steps:
- name: test
image: harbor.front.kjuulh.io/docker-proxy/library/bash:latest
commands:
- echo 'Run tests'

3
renovate.json Normal file
View File

@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View File

@@ -16,6 +16,7 @@ then
fi fi
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker pull "$latest_tag"
DOCKER_BUILDKIT=1 docker build --cache-from "$latest_tag" -t "$tag" -f "$TMP/build_release.Dockerfile" . DOCKER_BUILDKIT=1 docker build --cache-from "$latest_tag" -t "$tag" -f "$TMP/build_release.Dockerfile" .
docker tag "$tag" "$latest" docker tag "$tag" "$latest_tag"

View File

@@ -12,7 +12,5 @@ echo "docker: logging in"
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
echo "docker: pushing image $tag" echo "docker: pushing image $tag"
docker push "$tag" & docker push --all-tags "$base_tag"
docker push "$latest_tag" &
wait

View File

@@ -1,11 +1,7 @@
FROM rust:1.62.1-slim-buster as builder FROM golang
RUN apt-get update && apt-get upgrade -y
RUN apt-get install libssl-dev
RUN apt-get install -y -q build-essential curl
COPY . . COPY . .
RUN cargo build RUN go build cmd/main.go
CMD [ "cargo", "run" ] CMD [ "main" ]

View File

@@ -1,2 +1,2 @@
target/
.cuddle/ .cuddle/
main/