From 4d9c0f8e7bc12a21801162074dd85eef94b16c54 Mon Sep 17 00:00:00 2001 From: naskya Date: Tue, 7 May 2024 06:11:31 +0900 Subject: [PATCH] ci: fix syntax --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3262ead6c..6e2c742cbf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,13 +59,14 @@ build_test: container_image_build: stage: build image: docker.io/debian:bookworm-slim + services: [] before_script: [] rules: - if: $CI_COMMIT_BRANCH == 'develop' script: - apt-get update && apt-get -y upgrade - apt-get install -y --no-install-recommends buildah - - echo "${CI_REGISTRY_PASSWORD}" | buildah login "${CI_REGISTRY}" --username "${CI_REGISTRY_USER}" --password-stdin + - buildah login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" - buildah build --tag "${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production" --platform linux/amd64 . - buildah push "${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production"