Skip to content

ci

ci #7

Workflow file for this run

name: ci
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
vers:
- "1.2.5"
- "1.2.6"
- "1.2.7"
- "1.2.8"
- "2.0.0"
- "2.0.1"
- "2.0.2"
- "2.0.3"
- "2.0.4"
- "2.0.5"
- "2.0.6"
- "2.0.7"
- "2.0.8"
- "2.0.9"
- "2.0.10"
- "2.0.11"
- "2.0.12"
- "2.0.13"
- "2.0.14"
- "2.0.15"
- "2.1.0"
- "2.1.1"
- "2.1.2"
- "2.1.3"
- "2.1.4"
- "2.1.5"
- "2.1.6"
- "2.1.7"
- "3.0.0"
- "3.0.1"
- "3.0.2"
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: true
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
-
name: Inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Build dockerfile (with no push)
run: |
ver="${{ matrix.vers }}"
echo "${ver}"
./buildx.sh --version ${ver} --push false --repo ${{ secrets.DOCKER_USERNAME }} --image-name doris
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build dockerfile (with push)
run: |
echo "Build dockerfile (with push)"
ver="${{ matrix.vers }}"
echo "${ver}"
./buildx.sh --version ${ver} --push true --repo ${{ secrets.DOCKER_USERNAME }} --image-name doris