You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Results

  • You will push a base Paas into GitLab

Tasks / Procedure

  1. Go to Terminal or CMD and clone the "Backend Paas Project" 
    1. Clone the empty project in a new directory called "backend"
      git clone https://gitlab.paastraining.magnolia-platform.com/paas-training/backend-paas-project.git

    2. Use your GitLab Username and the access token.
      1. Username:
        Username for 'https://gitlab.paastraining.magnolia-platform.com':
        - On the left sidebar, select your avatar
        - Select your name or username
      2. Password:
        Password for 'https://francisco.gonzalez@gitlab.paastraining.magnolia-platform.com'
        Access token: glpat-pMU6RqqEXzG3U35XDzSw
  2. Go to "backend" directory. Use the Magnolia's Maven Archetype to create a new Magnolia Paas Project

3. Copy the Magnolia project into the empty project you clone from GitLab.

    1. Hint: (You should a structure like this)


4. Push the project into your own branch.

    • You will create a branch that you will use during the project to deploy. (The branch should have the structure of: <the first letter of your first name and your surname>.)
      • for example: Francisco Gonzalez - Branch name fgonzalez
    • Use the next script.
      git push
      git checkout -b <yourBranchName>
      git add .
      git commit -m "Initial commit"
      git push origin <yourBranchName>


5. Check if you can see your project and your branch in GitLab


6. In GitLab, go to Settings > Repository > Protected branches

    1. Select your branch and change the selectors to "Maintainers" 
    2. "Protect" your branch







  • No labels