Skip to content

Merge pull request #698 from coldav/colin/update_docker_llvm_install #22

Merge pull request #698 from coldav/colin/update_docker_llvm_install

Merge pull request #698 from coldav/colin/update_docker_llvm_install #22

name: publish docker images
on:
push:
branches:
- main
paths:
- '.github/workflows/publish_docker_images.yml'
- '.github/dockerfiles/**'
permissions:
contents: read
packages: write
attestations: write
id-token: write
env:
REGISTRY: ghcr.io/uxlfoundation
jobs:
publish-docker-images-x86-64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the Docker images
run: |
for DOCKERFILE in ${{ github.workspace }}/.github/dockerfiles/Dockerfile_*x86-64 ; do
VERSION=${DOCKERFILE##*_}
docker build . -f $DOCKERFILE --tag $REGISTRY/ock_ubuntu_$VERSION:latest
docker push $REGISTRY/ock_ubuntu_$VERSION:latest
done
publish-docker-images-aarch64:
runs-on: ubuntu-22.04-arm
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the Docker images
run: |
DOCKERFILE=${{ github.workspace }}/.github/dockerfiles/Dockerfile_22.04-aarch64
VERSION=${DOCKERFILE##*_}
docker build . -f $DOCKERFILE --tag $REGISTRY/ock_ubuntu_$VERSION:latest
docker push $REGISTRY/ock_ubuntu_$VERSION:latest