|
|
@ -2,11 +2,6 @@ kind: pipeline
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
name: Update image
|
|
|
|
name: Update image
|
|
|
|
|
|
|
|
|
|
|
|
# run from within a docker container. probably minimal. Debian / alpine/ nixos?
|
|
|
|
|
|
|
|
# pull down the images i'm interested in (list? array?)
|
|
|
|
|
|
|
|
# retag them and upload to my own package registry
|
|
|
|
|
|
|
|
## This requires secrets! I gotta be able to login to my own package repo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Pull secret image and upload an updated copy to my package repo.
|
|
|
|
- name: Pull secret image and upload an updated copy to my package repo.
|
|
|
@ -20,7 +15,7 @@ steps:
|
|
|
|
from_secret: secret-image
|
|
|
|
from_secret: secret-image
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- apk add docker
|
|
|
|
- apk add docker
|
|
|
|
- docker login git.awful.club -u $USERNAME -p $PASSWORD
|
|
|
|
- echo $PASSWORD | docker login git.awful.club -u $USERNAME -p --password-stdin
|
|
|
|
- docker pull $IMAGE
|
|
|
|
- docker pull $IMAGE
|
|
|
|
- docker image tag {{ secret image name }} {{git.awful.club/packages/my_new_package}}
|
|
|
|
- docker image tag {{ secret image name }} {{git.awful.club/packages/my_new_package}}
|
|
|
|
- docker image push
|
|
|
|
- docker image push
|
|
|
|