feat(build): build for supported golang versions
This commit is contained in:
parent
cec5cca8fa
commit
503bbb8f89
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
matrix:
|
||||||
|
GO_VERSION:
|
||||||
|
- 1.24
|
||||||
|
- 1.23
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: [push, manual]
|
- event: [push, manual]
|
||||||
|
|
||||||
|
|
@ -6,7 +11,7 @@ steps:
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
registry: ${CI_FORGE_URL##https://}
|
registry: ${CI_FORGE_URL##https://}
|
||||||
repo: ${CI_REPO_OWNER}/${CI_REPO_NAME}
|
repo: ${CI_REPO_OWNER}/${CI_REPO_NAME}:${GO_VERSION}
|
||||||
username:
|
username:
|
||||||
from_secret: forge-username
|
from_secret: forge-username
|
||||||
password:
|
password:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.24
|
FROM golang:${GO_VERSION}
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue