diff --git a/.drone.yml b/.drone.yml index 6228bf3..985eac4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -34,9 +34,7 @@ steps: username: from_secret: docker_username tags: - - ${DRONE_TAG}-linux-amd64 - - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-amd64 - - ${DRONE_SEMVER_MAJOR}-linux-amd64 + - latest-amd64 when: event: - tag @@ -77,9 +75,7 @@ steps: username: from_secret: docker_username tags: - - ${DRONE_TAG}-linux-arm64 - - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm64 - - ${DRONE_SEMVER_MAJOR}-linux-arm64 + - latest-arm64 when: event: - tag @@ -102,9 +98,6 @@ steps: from_secret: docker_password tags: - latest - - ${DRONE_TAG} - - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR} - - ${DRONE_SEMVER_MAJOR} trigger: event: diff --git a/README.md b/README.md index af124d7..03ff7cf 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ Simple container for hugo development +## available tags + +| tag | description | +| ------------ | ----------------------------------- | +| latest | multi-arch manifest | +| latest-amd64 | latest build for amd64 architecture | +| latest-arm64 | latest build for arm64 architecture | + ## build ```bash @@ -44,4 +52,3 @@ steps: ## TODO - Auto build and update based on hugo version - diff --git a/manifest.tmpl b/manifest.tmpl index fbe0645..98bd814 100644 --- a/manifest.tmpl +++ b/manifest.tmpl @@ -1,18 +1,12 @@ -image: docker.asperti.com/paspo/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} -{{#if build.tags}} -tags: -{{#each build.tags}} - - {{this}} -{{/each}} -{{/if}} +image: docker.asperti.com/paspo/hugo:latest manifests: - - image: docker.asperti.com/paspo/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + image: docker.asperti.com/paspo/hugo:latest-amd64 platform: architecture: amd64 os: linux - - image: docker.asperti.com/paspo/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + image: docker.asperti.com/paspo/hugo:latest-arm64 platform: variant: v8 architecture: arm64