You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
729 B
25 lines
729 B
kind: pipeline
|
|
type: docker
|
|
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:
|
|
- name: greeting
|
|
image: alpine
|
|
environment:
|
|
USERNAME:
|
|
from_secret: gitea-user
|
|
PASSWORD:
|
|
from_secret: gitea-key
|
|
IMAGE:
|
|
from_secret: secret-image
|
|
commands:
|
|
- docker login --username=$USERNAME --password=$PASSWORD git.awful.club
|
|
- docker pull $IMAGE
|
|
- docker image tag {{ secret image name }} {{git.awful.club/packages/my_new_package}}
|
|
- docker image push
|