Skip to content

Commit

Permalink
Switch to use Drone instead of Actions for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBailey committed Aug 14, 2023
1 parent 74515ac commit e5f87ab
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 62 deletions.
61 changes: 61 additions & 0 deletions .drone.yml
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
27 changes: 0 additions & 27 deletions .github/workflows/indev-docker-push.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/main-docker-push.yml

This file was deleted.

0 comments on commit e5f87ab

Please sign in to comment.