Skip to content

readme #REPO=ccr.ccs.tencentyun.com #516

readme #REPO=ccr.ccs.tencentyun.com

readme #REPO=ccr.ccs.tencentyun.com #516

name: docker-image-x11-base
on:
push:
branches: [ "dev", "sam-custom" ]
pull_request:
branches: [ "dev" ]
jobs:
build:
# runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup QEMU
# uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2 #ref docker-baseimage-gui
with:
platforms: arm,arm64,ppc64le,mips64,s390x
- name: Setup Docker Buildx
# uses: docker/setup-buildx-action@
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Call buildx.sh(build with ali's cache, push)
run: |
# VARS
echo ${{ github.repository_owner }} #infrastlabs
echo ${{ github.repository }}
echo ${{ secrets.DOCKER_REGISTRY_PW_DOCKERHUB }} #fill not show in log
# INFO
pwd && ls -l
docker version
free -h; df -h; ip a |grep inet; uname -a;
# ENV
export DOCKER_REGISTRY_USER_infrastSubUser2=${{ secrets.DOCKER_REGISTRY_USER_INFRASTSUBUSER2 }}
export DOCKER_REGISTRY_PW_infrastSubUser2=${{ secrets.DOCKER_REGISTRY_PW_INFRASTSUBUSER2 }}
export DOCKER_REGISTRY_USER_dockerhub=${{ secrets.DOCKER_REGISTRY_USER_DOCKERHUB }}
export DOCKER_REGISTRY_PW_dockerhub=${{ secrets.DOCKER_REGISTRY_PW_DOCKERHUB }}
export DOCKER_REGISTRY_TENCLOUD_USER=${{ secrets.DOCKER_REGISTRY_TENCLOUD_USER }}
export DOCKER_REGISTRY_TENCLOUD_PASS=${{ secrets.DOCKER_REGISTRY_TENCLOUD_PASS }}
export REPO=registry-1.docker.io
export REPO=registry.cn-shenzhen.aliyuncs.com
export REPO=ccr.ccs.tencentyun.com
# BUILD
:> /tmp/.timecost
echo compile; cd compile;
# # bash buildx.sh ubt-builder
# # bash buildx.sh deb12-builder
# #
# # bash buildx.sh builder
# # bash buildx.sh gtk224 #builder-gtk224
# bash buildx.sh #compile
# exit 0
# #############################
echo flux; cd ../flux;
bash buildx.sh rootfs
#
echo distros; cd ../distros;
bash buildx.sh core alpine &
bash buildx.sh core ubuntu &
bash buildx.sh core opensuse &
# oth
bash buildx.sh core busybox &
bash buildx.sh core openwrt &
bash buildx.sh core debian &
bash buildx.sh core fedora &
wait
# app
bash buildx.sh app alpine &
bash buildx.sh app ubuntu &
bash buildx.sh app opensuse &
wait
#
#
# view timecost
cat /tmp/.timecost
# post-build:
# name: Post-build
# needs: [ build ]
# runs-on: ubuntu-20.04
# steps:
# - name: Prepare
# id: prep
# run: |
# # Determine the release type.
# echo 123
# notification:
# name: Notification
# needs: [ build, post-build ]
# runs-on: ubuntu-20.04
# if: ${{ always() }}