From f862305f7830f968bf7db94f42136d830de71b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 5 Jul 2022 14:07:54 -0400 Subject: [PATCH] ci/github: build LLVM Docker images --- .github/workflows/release-package.yml | 69 +++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 422f86d9..d6b90f9b 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -18,6 +18,7 @@ env: jobs: build-and-push-deps-image: + name: Build and publish dependency Docker image runs-on: ubuntu-latest permissions: contents: read @@ -50,6 +51,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-and-push-image: + name: Build and publish OpenDHT Docker image runs-on: ubuntu-latest permissions: contents: read @@ -81,3 +83,70 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + build-and-push-deps-image: + name: Build and publish dependency Docker image (LLVM) + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_DEPS }} + + - name: Build and push Docker image for dependencies + uses: docker/build-push-action@v3 + with: + context: . + file: docker/DockerfileDepsLlvm + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + build-and-push-image: + name: Build and publish OpenDHT Docker image (LLVM) + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + context: . + file: docker/DockerfileLlvm + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} -- GitLab