diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 422f86d96f0030f93d5a90799e1ab87691c5f656..d6b90f9b0fe7a00c2d9ff19e11d75cb0bb47a4af 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 }}