Пример #1
0
def deploy():
    with lcd(COMMBADGE):
        ref = local('git rev-parse HEAD', capture=True)

    rpmbuild = RPMBuild(name='commbadge',
                        env=settings.ENV,
                        ref=ref,
                        cluster=settings.CLUSTER,
                        domain=settings.DOMAIN)
    rpmbuild.build_rpm(ROOT, ['commbadge'])

    execute(_install_package, rpmbuild)

    rpmbuild.clean()
Пример #2
0
def deploy():
    with lcd(ROCKETFUEL):
        ref = local('git rev-parse HEAD', capture=True)

    rpmbuild = RPMBuild(name='rocketfuel',
                        env=settings.ENV,
                        ref=ref,
                        cluster=settings.CLUSTER,
                        domain=settings.DOMAIN)
    rpmbuild.build_rpm(ROOT, ['rocketfuel'])

    execute(_install_package, rpmbuild)

    rpmbuild.clean()
Пример #3
0
def deploy():
    with lcd(MARKETPLACE_STATS):
        ref = local('git rev-parse HEAD', capture=True)

    rpmbuild = RPMBuild(name='marketplace-stats',
                        env=settings.ENV,
                        ref=ref,
                        cluster=settings.CLUSTER,
                        domain=settings.DOMAIN)
    rpmbuild.build_rpm(ROOT, ['marketplace-stats'])

    execute(_install_package, rpmbuild)

    rpmbuild.clean()
Пример #4
0
def deploy():
    with lcd(ROCKETFUEL):
        ref = local('git rev-parse HEAD', capture=True)

    rpmbuild = RPMBuild(name='rocketfuel',
                        env=settings.ENV,
                        ref=ref,
                        cluster=settings.CLUSTER,
                        domain=settings.DOMAIN)
    rpmbuild.build_rpm(ROOT, ['rocketfuel'])

    execute(_install_package, rpmbuild)

    rpmbuild.clean()
Пример #5
0
def deploy():
    with lcd(ZAMBONI):
        ref = local('git rev-parse HEAD', capture=True)

    rpmbuild = RPMBuild(name='zamboni',
                        env=settings.ENV,
                        ref=ref,
                        cluster=settings.CLUSTER,
                        domain=settings.DOMAIN)

    execute(install_cron)

    rpmbuild.build_rpm(ROOT, ['zamboni', 'venv'])
    execute(install_package, rpmbuild)

    execute(restart_workers)
    execute(update_celery)
    rpmbuild.clean()
    managecmd('cron cleanup_validation_results')