Commit 72a7ef23 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

comments

parent d9fcff8a
Loading
Loading
Loading
Loading
+28 −25
Original line number Diff line number Diff line
@@ -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
@@ -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