2023-05-29 17:05:25 -05:00
|
|
|
pipeline:
|
2023-05-29 17:12:18 -05:00
|
|
|
build:
|
2023-05-29 17:16:48 -05:00
|
|
|
image: bash
|
2023-05-29 17:05:25 -05:00
|
|
|
commands:
|
2023-06-07 16:31:46 -05:00
|
|
|
- podman build . --tag codeberg.org/dragongoose/safetwitch-backend:edge
|
|
|
|
publish:
|
2023-06-07 16:32:33 -05:00
|
|
|
image: bash
|
2023-06-07 16:31:46 -05:00
|
|
|
commands:
|
|
|
|
- podman login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD codeberg.org
|
|
|
|
- podman push codeberg.org/dragongoose/safetwitch-backend:edge
|
2023-06-07 16:45:17 -05:00
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
publish-release:
|
|
|
|
image: bash
|
|
|
|
commands:
|
|
|
|
- podman tag codeberg.org/dragongoose/safetwitch-backend:edge codeberg.org/dragongoose/safetwitch-backend:lastest
|
|
|
|
- podman push codeberg.org/dragongoose/safetwitch-backend:latest
|
|
|
|
- podman tag codeberg.org/dragongoose/safetwitch-backend:latest codeberg.org/dragongoose/safetwitch-backend:$CI_COMMIT_TAG
|
|
|
|
- podman push codeberg.org/dragongoose/safetwitch-backend:$CI_COMMIT_TAG
|
2023-06-07 17:14:22 -05:00
|
|
|
secrets: [ docker_username, docker_password ]
|
2023-06-07 16:45:17 -05:00
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
tag: v*
|
|
|
|
|
|
|
|
|