代码拉取完成,页面将自动刷新
同步操作将从 刘明野/qemu-user-static 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
dist: xenial
services: docker
language: bash
addons:
apt:
config:
retries: true
update: true
sources:
# Install rpm2cpio (4.14.1+dfsg1-2) and
# cpio (2.12+dfsg-6) packages for bionic,
# the error "cpio: Malformed number" happens
# for qemu-user-static-4.1.0-1.fc31.x86_64.rpm,
# with rpm2cpio (4.12.0.1+dfsg1-3build3) and
# cpio (2.11+dfsg-5ubuntu1) and rpm2cpio for xenial.
# https://packages.ubuntu.com/bionic/cpio
- sourceline: 'deb http://archive.ubuntu.com/ubuntu bionic main universe'
packages:
- jq
- rpm2cpio
- cpio
env:
global:
- MAJOR_VERSION=4
- MINOR_VERSION=2
- PATCH_VERSION=0
- RELEASE_VERSION=6
- VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION-$RELEASE_VERSION
# Container tag version string.
# Set it here to give a flexibility of the value such as "X.Y".
- TAG_VER=$VERSION
# See qemu-user-static's RPM spec file on Fedora to check the new version.
# https://src.fedoraproject.org/rpms/qemu/blob/master/f/qemu.spec
- DOCKER_SERVER=docker.io
# - DOCKER_SERVER=quay.io
# Git repository
- REPO=multiarch/qemu-user-static
# Container repository
- DOCKER_REPO=$DOCKER_SERVER/multiarch/qemu-user-static
# - DOCKER_REPO=$DOCKER_SERVER/your_username/qemu-user-static
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/4.2.0/6.fc33/x86_64/qemu-user-static-4.2.0-6.fc33.x86_64.rpm"
- PACKAGE_FILENAME=$(basename "$PACKAGE_URI")
before_script:
- wget --content-disposition $PACKAGE_URI
- rpm2cpio $PACKAGE_FILENAME | cpio -dimv
script:
- ./generate_tarballs.sh
- |
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
./publish.sh -v "$VERSION" -t "$GITHUB_TOKEN" -r "$REPO"
fi
- ./update.sh -v "$VERSION" -t "$TAG_VER" -r "$REPO" -d "$DOCKER_REPO"
- docker images
- ./test.sh -d "$DOCKER_REPO"
after_success:
- |
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" "$DOCKER_SERVER" && \
docker push "$DOCKER_REPO"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。