Gitlab usage about git tags push event

  • Then I tried with test event by hand: (treat as normal push)

图片

  • There be webhook history in gitlab

  • But in agola, Just treat is as a normal push. (there be double run configed in config.jsonnet)

  • My Env
    • GitLab Community Edition 12.7.0
    • The test config in repo1

{
  runs: [
    {
      name: 'run01',
      tasks: [
         {
          name: 'git-src',
          runtime: {
            arch: 'amd64',
            containers: [
              {
                image: 'alpine/git',
              },
            ],
          },
          steps: [
            { type: 'clone' },
            { type: 'run', command: 'ls -l' },
          ],
          depends: [],
        }
      ],
    },   

    {
      name: 'run02',
      tasks: [
         {
          name: 'git-src',
          runtime: {
            arch: 'amd64',
            containers: [
              {
                image: 'alpine/git',
              },
            ],
          },
          steps: [
            { type: 'clone' },
            { type: 'run', command: 'ls -l' },
          ],
          depends: [],
        }
      ],
    },      
  ],
}