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:
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:

View File

@ -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

View File

@ -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