removed useless container tags

This commit is contained in:
Paolo Asperti 2024-05-02 09:23:59 +02:00
parent 6cd9ce42b6
commit 901f1162a8
Signed by: paspo
GPG Key ID: 06D46905D19D5182
3 changed files with 13 additions and 19 deletions

View File

@ -34,9 +34,7 @@ steps:
username: username:
from_secret: docker_username from_secret: docker_username
tags: tags:
- ${DRONE_TAG}-linux-amd64 - latest-amd64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-amd64
- ${DRONE_SEMVER_MAJOR}-linux-amd64
when: when:
event: event:
- tag - tag
@ -77,9 +75,7 @@ steps:
username: username:
from_secret: docker_username from_secret: docker_username
tags: tags:
- ${DRONE_TAG}-linux-arm64 - latest-arm64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm64
- ${DRONE_SEMVER_MAJOR}-linux-arm64
when: when:
event: event:
- tag - tag
@ -102,9 +98,6 @@ steps:
from_secret: docker_password from_secret: docker_password
tags: tags:
- latest - latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER_MAJOR}
trigger: trigger:
event: event:

View File

@ -4,6 +4,14 @@
Simple container for hugo development 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 ## build
```bash ```bash
@ -44,4 +52,3 @@ steps:
## TODO ## TODO
- Auto build and update based on hugo version - Auto build and update based on hugo version

View File

@ -1,18 +1,12 @@
image: docker.asperti.com/paspo/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} image: docker.asperti.com/paspo/hugo:latest
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests: 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: platform:
architecture: amd64 architecture: amd64
os: linux 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: platform:
variant: v8 variant: v8
architecture: arm64 architecture: arm64