Fix workflow
Build and push / build (push) Failing after 1m21s Details

This commit is contained in:
Adam Štrauch 2023-09-19 13:12:52 +02:00
parent 49ec1fa31a
commit 15bf043799
Signed by: cx
GPG Key ID: 7262DAFE292BCE20
2 changed files with 3 additions and 28 deletions

View File

@ -1,25 +0,0 @@
kind: pipeline
type: docker
name: image building
steps:
- name: build&push
image: registry.kube.ceperka.net/library/builder:38
environment:
# username: robot$library+droneci
# password:
# from_secret: repo_password
# image: harbor.hq.rosti.cz/library/builder
# repo: harbor.hq.rosti.cz
username: admin
password: admin
repo: registry.kube.ceperka.net
image: registry.kube.ceperka.net/library/builder
tag: 38
privileged: true
commands:
- echo "$password" | podman login -u $username --password-stdin $repo
- podman build -t $image:$tag .
- podman tag $image:$tag $image:latest
- podman push $image:$tag
- podman push $image:latest

View File

@ -9,17 +9,17 @@ jobs:
build:
runs-on: [amd64, prod]
container:
image:
image: harbor.rosti.cz/library/builder:38
steps:
- uses: actions/checkout@v3
- name: Login into registry
envs:
REGISTRY: harbor.rosti.cz
USERNAME: robot_lib
USERNAME: robot_library+lib
PASSWORD:
from_secret: REGISTRY_TOKEN
run: |
docker login -u $USERNAME -p "$PASSWORD" $REGISTRY
docker login -u "$USERNAME" -p "$PASSWORD" $REGISTRY
- name: Build
run: |
task build