-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to use Drone instead of Actions for builds
- Loading branch information
1 parent
74515ac
commit e5f87ab
Showing
3 changed files
with
61 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
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: plugins/docker | ||
settings: | ||
username: | ||
from_secret: DOCKERHUB_USERNAME | ||
password: | ||
from_secret: DOCKERHUB_PASSWORD | ||
repo: jackbailey/lynx | ||
dockerfile: Dockerfile | ||
|
||
--- | ||
|
||
kind: pipeline | ||
type: docker | ||
name: Build and Publish Image (Beta) | ||
trigger: | ||
event: | ||
- push | ||
branch: | ||
exclude: | ||
- 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,$DRONE_BRANCH-beta" > .tags | ||
|
||
- name: docker | ||
image: plugins/docker | ||
settings: | ||
username: | ||
from_secret: DOCKERHUB_USERNAME | ||
password: | ||
from_secret: DOCKERHUB_PASSWORD | ||
repo: jackbailey/lynx | ||
dockerfile: Dockerfile |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.