Skip to content

Commit

Permalink
Always push master-head image for agent in addition to numbered tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Mar 6, 2020
1 parent 369c77f commit cdb235c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,23 @@ steps:
- push

- name: push-head-agent-manifest
image: plugins/manifest:1.1.0
settings:
ignore_missing: true
password:
from_secret: docker_password
spec: manifest-agent-head.tmpl
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push

- name: push-build-number-agent-manifest
image: plugins/manifest:1.1.0
settings:
ignore_missing: true
Expand Down
29 changes: 29 additions & 0 deletions manifest-agent-head.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
image: rancher/rancher-agent:{{#if build.tag}}{{build.tag}}{{else}}{{replace "release/" "" build.branch }}-head{{/if}}
manifests:
-
image: rancher/rancher-agent:{{#if build.tag}}{{build.tag}}{{else}}{{replace "release/" "" build.branch }}-head{{/if}}-linux-amd64
platform:
architecture: amd64
os: linux
-
image: rancher/rancher-agent:{{#if build.tag}}{{build.tag}}{{else}}{{replace "release/" "" build.branch }}-head{{/if}}-linux-arm64
platform:
architecture: arm64
os: linux
-
image: rancher/rancher-agent:{{#if build.tag}}{{build.tag}}{{else}}{{replace "release/" "" build.branch }}-head{{/if}}-linux-arm
platform:
architecture: arm
os: linux
-
image: rancher/rancher-agent:{{#if build.tag}}{{build.tag}}{{else}}{{replace "release/" "" build.branch }}-head{{/if}}-windows-1809
platform:
architecture: amd64
os: windows
version: 1809
-
image: rancher/rancher-agent:{{#if build.tag}}{{build.tag}}{{else}}{{replace "release/" "" build.branch }}-head{{/if}}-windows-1903
platform:
architecture: amd64
os: windows
version: 1903

0 comments on commit cdb235c

Please sign in to comment.