Disable travis (#104)

This commit is contained in:
Juan Jose Medina
2021-03-15 11:04:49 +01:00
committed by GitHub
parent 98de255d46
commit c2560732cf
2 changed files with 1 additions and 82 deletions
-81
View File
@@ -1,81 +0,0 @@
language: bash
dist: focal
virt: vm
group: edge
os: linux
services:
- docker
env:
global:
- BASENAME=bitnami/minideb
- LATEST=buster
- DISTS_WITH_SNAPSHOT="$LATEST"
.build_job: &build_job
stage: build
before_install:
- docker version
# Fix for Ubuntu Xenial apt-daily.service triggering
# https://unix.stackexchange.com/questions/315502/how-to-disable-apt-daily-service-on-ubuntu-cloud-vm-image
- |
while sudo fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1; do
sleep 1
done
- sudo rm -f /usr/local/bin/jq
install:
- sudo make .installed-requirements
script:
- sudo bash buildone $DIST $PLATFORM
- 'if [[ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" == "master" && "$DISTS_WITH_SNAPSHOT" =~ (^|[[:space:]])"$DIST"($|[[:space:]]) ]] ; then sudo bash buildone_snapshot $DIST "$(./snapshot_id)" $PLATFORM ; fi'
after_success:
- export BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
- echo "Using branch $BRANCH"
- 'if [[ "$BRANCH" == "master" && "$LATEST" == "$DIST" ]] ; then sudo docker tag "$BASENAME:$DIST-$PLATFORM" "$BASENAME:latest-$PLATFORM" ; fi'
- 'if [[ "$BRANCH" == "master" ]] ; then sudo bash pushone $DIST $PLATFORM ; fi'
- 'if [[ "$BRANCH" == "master" && "$DISTS_WITH_SNAPSHOT" =~ (^|[[:space:]])"$DIST"($|[[:space:]]) ]] ; then sudo bash pushone "$DIST-snapshot-$(./snapshot_id)" $PLATFORM ; fi'
- 'if [[ "$BRANCH" == "master" && "$LATEST" == "$DIST" ]] ; then sudo bash pushone latest $PLATFORM ; fi'
jobs:
include:
- stage: shellcheck
install:
- sudo apt-get -qq update
- sudo apt-get install -y shellcheck
script: bash shellcheck
- <<: *build_job
arch: amd64
env:
- DIST=jessie PLATFORM=amd64
- <<: *build_job
arch: amd64
env:
- DIST=stretch PLATFORM=amd64
- <<: *build_job
arch: amd64
env:
- DIST=buster PLATFORM=amd64
- <<: *build_job
arch: arm64-graviton2
env:
- DIST=stretch PLATFORM=arm64
- <<: *build_job
arch: arm64-graviton2
env:
- DIST=buster PLATFORM=arm64
- stage: deploy
if: branch = master AND type = push
env:
- DISTS="stretch buster latest"
before_install: mkdir $HOME/.docker
install: 'echo "{ \"experimental\": \"enabled\" }" > $HOME/.docker/config.json'
script:
- bash pushmanifest
- stage: deploy
if: branch = master AND type = push
env:
- DIST="jessie"
before_install: mkdir $HOME/.docker
install: 'echo "{ \"experimental\": \"enabled\" }" > $HOME/.docker/config.json'
script:
- DISTS=jessie PLATFORMS=amd64 bash pushmanifest
+1 -1
View File
@@ -1,7 +1,7 @@
minideb
=======
[![Build Status](https://travis-ci.org/bitnami/minideb.svg?branch=master)](https://travis-ci.org/bitnami/minideb)
[![CI](https://github.com/bitnami/minideb/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/bitnami/minideb/actions/workflows/main.yml)
# What is Minideb
A minimalist Debian-based image built specifically to be used as a base image for containers.