Loading capif/templates/ci_dev.gitlab-ci.yml +28 −25 Original line number Diff line number Diff line Loading @@ -111,6 +111,8 @@ dev_linting_docker: needs: ["dev_linting_code"] <<: *dev_common # NOT WORKING: failed when docker login. seem we need to use docker-in-docker rather than # shell alpine runners #docker_login: # stage: docker_login # image: docker:24.0.9 Loading @@ -123,28 +125,29 @@ dev_linting_docker: # # docker push capif-client:$CI_COMMIT_REF_SLUG docker_login: stage: docker_login script: - | #!/bin/bash # Update your existing list of packages apk update # Install Docker apk add docker # Start the Docker service dockerd & # Verify the installation docker --version echo "### docker login ###" docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY echo "### build & push capif-client ###" cd services/capif-client/ && docker build -t capif-client:$CI_COMMIT_REF_SLUG . docker push capif-client:$CI_COMMIT_REF_SLUG ## NOT WORKING: failed when build de images - failed to mount overlay: operation not permitted" storage-driver=overlay2 #docker_login: # stage: docker_login # script: # - | # #!/bin/bash # # # Update your existing list of packages # apk update # # # Install Docker # apk add docker # # # Start the Docker service # dockerd & # # # Verify the installation # docker --version # # echo "### docker login ###" # docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY # # echo "### build & push capif-client ###" # cd services/capif-client/ && docker build -t capif-client:$CI_COMMIT_REF_SLUG . # # docker push capif-client:$CI_COMMIT_REF_SLUG Loading
capif/templates/ci_dev.gitlab-ci.yml +28 −25 Original line number Diff line number Diff line Loading @@ -111,6 +111,8 @@ dev_linting_docker: needs: ["dev_linting_code"] <<: *dev_common # NOT WORKING: failed when docker login. seem we need to use docker-in-docker rather than # shell alpine runners #docker_login: # stage: docker_login # image: docker:24.0.9 Loading @@ -123,28 +125,29 @@ dev_linting_docker: # # docker push capif-client:$CI_COMMIT_REF_SLUG docker_login: stage: docker_login script: - | #!/bin/bash # Update your existing list of packages apk update # Install Docker apk add docker # Start the Docker service dockerd & # Verify the installation docker --version echo "### docker login ###" docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY echo "### build & push capif-client ###" cd services/capif-client/ && docker build -t capif-client:$CI_COMMIT_REF_SLUG . docker push capif-client:$CI_COMMIT_REF_SLUG ## NOT WORKING: failed when build de images - failed to mount overlay: operation not permitted" storage-driver=overlay2 #docker_login: # stage: docker_login # script: # - | # #!/bin/bash # # # Update your existing list of packages # apk update # # # Install Docker # apk add docker # # # Start the Docker service # dockerd & # # # Verify the installation # docker --version # # echo "### docker login ###" # docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY # # echo "### build & push capif-client ###" # cd services/capif-client/ && docker build -t capif-client:$CI_COMMIT_REF_SLUG . # # docker push capif-client:$CI_COMMIT_REF_SLUG