forked from Lynx-Shortener/Lynx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
78 lines (69 loc) · 1.68 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
kind: pipeline
type: docker
name: Build and Publish Image (Production)
trigger:
event:
- push
branch:
include:
- main
steps:
- name: Get version
image: alpine
commands:
- SEMVER_MAJOR="$$(cat VERSION | cut -d. -f1)"
- SEMVER_MINOR="$$(cat VERSION | cut -d. -f2)"
- SEMVER_PATCH="$$(cat VERSION | cut -d. -f3)"
- echo -n "beta,latest,$SEMVER_MAJOR.$SEMVER_MINOR.$SEMVER_PATCH,$SEMVER_MAJOR.$SEMVER_MINOR,$SEMVER_MAJOR" > .tags
- name: docker
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
repo: jackbailey/lynx
dockerfile: Dockerfile
platforms:
- linux/arm64
- linux/amd64
cache_from: "jackbailey/lynx:beta"
---
kind: pipeline
type: docker
name: Build and Publish Image (Beta)
trigger:
event:
- push
branch:
exclude:
- main
- dependabot/*
steps:
- name: Get version
image: alpine
commands:
- SEMVER_MAJOR="$$(cat VERSION | cut -d. -f1)"
- SEMVER_MINOR="$$(cat VERSION | cut -d. -f2)"
- SEMVER_PATCH="$$(cat VERSION | cut -d. -f3)"
- echo -n "beta,$DRONE_BRANCH-beta" > .tags
- name: docker
image: thegeeklab/drone-docker-buildx
privileged: true
settings:
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
repo: jackbailey/lynx
dockerfile: Dockerfile
platforms:
- linux/arm64
- linux/amd64
cache_from: "jackbailey/lynx:beta"
---
kind: signature
hmac: 251d01b17d7e3547670d8f1bafa347a76e65ea118d9230156e64939eab37f12e
...