Skip to content

Build Clang Docker Images #2

Build Clang Docker Images

Build Clang Docker Images #2

Workflow file for this run

name: Build Clang Docker Images
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push AMD64
run: |
python build_img.py -v 23 -r teeks99/clang-ubuntu -p -T -l amd64_log.json --arch
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: amd64-log
path: amd64_log.json
build-arm64:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push ARM64
run: |
python build_img.py -v 23 -r teeks99/clang-ubuntu -p -T -l arm64_log.json --arch
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: arm64-log
path: arm64_log.json
create-manifest:
needs: [build-amd64, build-arm64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Download Artifacts
uses: actions/download-artifact@v4
- name: Parse and Create Manifest
run: |
AMD64_TAG=$(jq -r '.versions["23"].timestamp' amd64-log/amd64_log.json)
ARM64_TAG=$(jq -r '.versions["23"].timestamp' arm64-log/arm64_log.json)
echo "AMD64 tag: $AMD64_TAG"
echo "ARM64 tag: $ARM64_TAG"
python build_img.py -v 23 -r teeks99/clang-ubuntu --manifest-only $AMD64_TAG $ARM64_TAG