Updated Drone CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
b5f42ff5f3
commit
a09d4167d9
42
.drone.yml
42
.drone.yml
@ -5,6 +5,7 @@ name: default
|
|||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
- dev
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
@ -35,7 +36,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- go-test
|
- go-test
|
||||||
|
|
||||||
# Build Containers for each architecture
|
# Build Containers for each architecture PROD
|
||||||
- name: docker-build-image-amd64
|
- name: docker-build-image-amd64
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
volumes:
|
volumes:
|
||||||
@ -52,14 +53,51 @@ steps:
|
|||||||
from_secret: gitea_password
|
from_secret: gitea_password
|
||||||
repo: gitea.voser.cloud/container/iwilldie
|
repo: gitea.voser.cloud/container/iwilldie
|
||||||
registry: https://gitea.voser.cloud
|
registry: https://gitea.voser.cloud
|
||||||
|
auto_tag: true
|
||||||
tags:
|
tags:
|
||||||
- ${DRONE_COMMIT_BRANCH}
|
|
||||||
- latest
|
- latest
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
dockerfile: /drone/src/Docker/Dockerfile.amd64
|
dockerfile: /drone/src/Docker/Dockerfile.amd64
|
||||||
nocache: true
|
nocache: true
|
||||||
depends_on:
|
depends_on:
|
||||||
- "go-build-bin-amd64"
|
- "go-build-bin-amd64"
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- merge
|
||||||
|
- tag
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
|
# Build Containers for each architecture DEV
|
||||||
|
- name: docker-build-image-amd64
|
||||||
|
image: thegeeklab/drone-docker-buildx
|
||||||
|
volumes:
|
||||||
|
- name: docker_socket
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
- name: binaries
|
||||||
|
path: /drone/src/binaries/
|
||||||
|
privileged: true
|
||||||
|
commands:
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: gitea_username
|
||||||
|
password:
|
||||||
|
from_secret: gitea_password
|
||||||
|
repo: gitea.voser.cloud/container/iwilldie
|
||||||
|
registry: https://gitea.voser.cloud
|
||||||
|
auto_tag: true
|
||||||
|
auto_tag_suffix: dev
|
||||||
|
platforms: linux/amd64
|
||||||
|
dockerfile: /drone/src/Docker/Dockerfile.amd64
|
||||||
|
nocache: true
|
||||||
|
depends_on:
|
||||||
|
- "go-build-bin-amd64"
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
branch:
|
||||||
|
- dev
|
||||||
|
|
||||||
# Run go tests
|
# Run go tests
|
||||||
- name: binary-cleanup
|
- name: binary-cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user