fixed syntax error in YAML file #600
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | ||
| on: | ||
| push: | ||
| branches: | ||
| - '**' #every branch | ||
| pull_request: | ||
| branches: | ||
| - '**' #every branch | ||
| jobs: | ||
| setup: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| - name: Available platforms | ||
| run: echo ${{ steps.buildx.outputs.platforms }} | ||
| - name: Install Podman | ||
| run: sudo apt update && sudo apt install -y podman | ||
| - name: Free up disk space | ||
| run: | | ||
| # Remove Java (JDKs) | ||
| sudo rm -rf /usr/lib/jvm | ||
| # Remove .NET SDKs | ||
| sudo rm -rf /usr/share/dotnet | ||
| # Remove Swift toolchain | ||
| sudo rm -rf /usr/share/swift | ||
| # Remove Haskell (GHC) | ||
| sudo rm -rf /usr/local/.ghcup | ||
| # Remove Julia | ||
| sudo rm -rf /usr/local/julia* | ||
| # Remove Android SDKs | ||
| sudo rm -rf /usr/local/lib/android | ||
| # Remove Chromium | ||
| sudo rm -rf /usr/local/share/chromium | ||
| # Remove Microsoft/Edge and Google Chrome builds | ||
| sudo rm -rf /opt/microsoft /opt/google | ||
| # Remove Azure CLI | ||
| sudo rm -rf /opt/az | ||
| # Remove PowerShell | ||
| sudo rm -rf /usr/local/share/powershell | ||
| # Remove CodeQL and other toolcaches | ||
| sudo rm -rf /opt/hostedtoolcache | ||
| docker system prune -af || true | ||
| docker builder prune -af || true | ||
| df -h | ||
| build: | ||
| runs-on: ubuntu-24.04 | ||
| needs: setup | ||
| steps: | ||
| - uses: actions/checkout@master | ||
| with: | ||
| ref: ${{ github.ref }} | ||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v1 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - name: Build | ||
| env: | ||
| VERSION: ${{ github.run_number }} | ||
| run: | | ||
| df -h | ||
| echo "Start CI build" | ||
| docker run --privileged --rm tonistiigi/binfmt --install all | ||
| podman manifest create build | ||
| podman build --format docker --platform linux/amd64,linux/arm64,linux/arm/v7 --manifest localhost/build . | ||
| podman manifest push localhost/build docker://docker.io/bbernhard/signal-cli-rest-api:${EPOCHSECONDS}-ci | ||