This commit is contained in:
parent
b2fb92dcbc
commit
c6e70e27a1
2 changed files with 5 additions and 5 deletions
|
@ -4,11 +4,11 @@ type: docker
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Replace version"
|
- name: "Replace version tag"
|
||||||
image: "debian"
|
image: "debian"
|
||||||
commands:
|
commands:
|
||||||
- sed -i s/<INSERT_TAG_DURING_BUILD>/${DRONE_TAG}/g lib/mastodon/version.rb
|
- sed -i s/INSERT_TAG_DURING_BUILD/${DRONE_TAG}/g lib/mastodon/version.rb
|
||||||
|
depends_on: ["clone"]
|
||||||
|
|
||||||
- name: "Build Image"
|
- name: "Build Image"
|
||||||
image: "plugins/docker:20.14.4"
|
image: "plugins/docker:20.14.4"
|
||||||
|
@ -27,7 +27,7 @@ steps:
|
||||||
- "${DRONE_TAG}"
|
- "${DRONE_TAG}"
|
||||||
force_tag: true
|
force_tag: true
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
depends_on: [clone]
|
depends_on: ["Replace version tag"]
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event: [tag]
|
event: [tag]
|
||||||
|
|
|
@ -21,7 +21,7 @@ module Mastodon
|
||||||
end
|
end
|
||||||
|
|
||||||
def suffix
|
def suffix
|
||||||
'<INSERT_TAG_DURING_BUILD>'
|
'INSERT_TAG_DURING_BUILD'
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_a
|
def to_a
|
||||||
|
|
Loading…
Reference in a new issue