Fix docker registry #8
Workflow file for this run
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: Ubuntu | |
| on: | |
| push: | |
| env: | |
| DOCKER_REGISTRY: ghcr.io | |
| jobs: | |
| # Build the Docker image for Ubuntu using different versions of GCC. | |
| gcc: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| version: | |
| - os: jammy | |
| gcc: 12 | |
| - os: noble | |
| gcc: 14 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Login to GitHub Container Registry | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${DOCKER_REGISTRY} -u ${{ github.actor }} --password-stdin | |
| - name: Build the Docker image | |
| working-directory: docker/ubuntu | |
| run: | | |
| DOCKER_BUILDKIT=1 docker build . \ | |
| --target gcc \ | |
| --build-arg UBUNTU_VERSION=${{ matrix.version.os }} \ | |
| --build-arg GCC_VERSION=${{ matrix.version.gcc }} \ | |
| --tag ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:gcc${{ matrix.version.gcc }} | |
| - name: Push the Docker image | |
| run: docker push ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:gcc${{ matrix.version.gcc }} | |
| # Build the Docker image for Ubuntu using different versions of Clang. | |
| clang: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| version: | |
| - os: noble | |
| clang: 18 | |
| - os: noble | |
| clang: 19 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Login to GitHub Container Registry | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${DOCKER_REGISTRY} -u ${{ github.actor }} --password-stdin | |
| - name: Build the Docker image | |
| working-directory: docker/ubuntu | |
| run: | | |
| DOCKER_BUILDKIT=1 docker build . \ | |
| --target clang \ | |
| --build-arg UBUNTU_VERSION=${{ matrix.version.os }} \ | |
| --build-arg CLANG_VERSION=${{ matrix.version.clang }} \ | |
| --tag ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:clang${{ matrix.version.clang }} | |
| - name: Push the Docker image | |
| run: docker push ${DOCKER_REGISTRY}/${{ github.repository }}/${{ matrix.version.os }}:clang${{ matrix.version.clang }} |