2024-01-26 19:39:32 -05:00
|
|
|
kind: pipeline
|
|
|
|
type: exec
|
2024-06-01 17:18:14 -04:00
|
|
|
name: Build and Push Docker Image
|
2024-01-26 19:39:32 -05:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2024-06-01 17:18:14 -04:00
|
|
|
arch: arm64
|
2024-01-26 19:39:32 -05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build
|
|
|
|
environment:
|
2024-06-01 17:18:14 -04:00
|
|
|
CODEBERG_USERNAME:
|
|
|
|
from_secret: CODEBERG_USERNAME
|
|
|
|
CODEBERG_PASSWORD:
|
|
|
|
from_secret: CODEBERG_PASSWORD
|
2024-01-26 19:39:32 -05:00
|
|
|
commands:
|
2024-06-01 17:18:14 -04:00
|
|
|
- echo $CODEBERG_PASSWORD | docker login codeberg.org --username $CODEBERG_USERNAME --password-stdin
|
|
|
|
- docker build -t codeberg.org/korbs/poke:arm64 .
|
|
|
|
- docker push codeberg.org/korbs/poke:arm64
|