Use main as default branch

This commit is contained in:
Jakob Lechner 2022-01-07 01:45:54 +00:00
parent 0d0ec877eb
commit b5417f998a
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
2 changed files with 4 additions and 4 deletions

View file

@ -104,15 +104,15 @@ squashfs_featurebranch:
variables:
- $task == "security-scanner"
refs:
- master
- main
squashfs_master:
squashfs_main:
<<: *squashfs_template
variables:
COMPRESSION_LEVEL: 15
only:
refs:
- master
- main
except:
variables:
- $task == "security-scanner"

View file

@ -33,7 +33,7 @@ if __name__ == '__main__':
api_token = os.environ.get('PRIVATE_TOKEN')
gitlab = GitLab(gitlab_url, project_id, api_token)
for distro in sys.argv[1:]:
job = gitlab.getLastSuccessfulJob('master', 'squashfs_master')
job = gitlab.getLastSuccessfulJob('main', 'squashfs_main')
if job is not None:
gitlab.downloadArtifact(job, 'images/debian-' + distro + '.dpkg-list', 'debian-' + distro + '.dpkg-list')
if checkDebianDistro(distro) > 0: