Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
SCRUM
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 51
    • Issues 51
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • le6
  • SCRUM
  • Issues
  • #580

Closed
Open
Opened Jul 05, 2018 by Alessandro Elias@aeliasOwner
  • Report abuse
  • New issue
Report abuse New issue

Melhorar código do deploy.

Dentro do fonte .deploy.sh o código esta replicado.

Faça as seguintes mudanças.

de

if [ "$CI_JOB_NAME" = "deploy_for_unstable" ]; then
    dput -u -f --config=dput.cf repo build/*.changes

elif [ "$CI_JOB_NAME" = "deploy_for_testing" ]; then
    CHANGELOG="package/debian/changelog"
    LINE=$(head -n 1 $CHANGELOG)
    PACKAGE=$(echo "$LINE" | cut -d' ' -f1)
    VERSION=$(echo "$LINE" | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
    REPREPRO_CMD="reprepro -Vb /home/repository/www/le6 copysrc testing unstable $PACKAGE $VERSION"
    ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa repository@repo.c3sl.ufpr.br "$REPREPRO_CMD"

elif [ "$CI_JOB_NAME" = "deploy_for_stable" ]; then
    CHANGELOG="package/debian/changelog"
    LINE=$(head -n 1 $CHANGELOG)
    PACKAGE=$(echo "$LINE" | cut -d' ' -f1)
    VERSION=$(echo "$LINE" | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
    REPREPRO_CMD="reprepro -Vb /home/repository/www/le6 copysrc stable testing $PACKAGE $VERSION"
    ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa repository@repo.c3sl.ufpr.br "$REPREPRO_CMD"
fi

para

if [ "$CI_JOB_NAME" = "deploy_for_unstable" ]; then
    dput -u -f --config=dput.cf repo build/*.changes

else
    if [ "$CI_JOB_NAME" = "deploy_for_testing" ]; then
       REPO_SRC=...
       REPO_TGT=...
    elif [ "$CI_JOB_NAME" = "deploy_for_stable" ]; then
       REPO_SRC=...
       REPO_TGT=...
    if

    CHANGELOG="package/debian/changelog"
    LINE=$(head -n 1 $CHANGELOG)
    PACKAGE=$(echo "$LINE" | cut -d' ' -f1)
    VERSION=$(echo "$LINE" | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
    REPREPRO_CMD="reprepro -Vb /home/repository/www/le6 copysrc $REPO_SRC $REPO_TGT $PACKAGE $VERSION"

    ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null repository@repo.c3sl.ufpr.br "$REPREPRO_CMD"
fi

Fazer modificações em um repositório, como le-help, testar e então replicar para os outros.

Assignee
Assign to
stable-6.1.1-7
Milestone
stable-6.1.1-7 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: le6/SCRUM#580