From f81b913f14435eacb569694f13ced446e80ba72e Mon Sep 17 00:00:00 2001 From: Harman Singh Hira Date: Sun, 13 Sep 2026 20:02:31 +1200 Subject: [PATCH 1/3] Building --- .github/workflows/docker-publish.yml | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..70f4766 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,49 @@ +name: Build and publish Docker image + +on: + push: + branches: [main] + workflow_dispatch: {} + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository_owner }}/opencadence + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Compute image tags + id: vars + run: | + echo "date_tag=$(date -u +%Y.%m.%d)" >> "$GITHUB_OUTPUT" + echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + build-args: | + SOURCE_REVISION=${{ steps.vars.outputs.short_sha }} + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.date_tag }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ steps.vars.outputs.short_sha }} \ No newline at end of file From 5a6ab86311af986eab4e872553de86aacd0fad57 Mon Sep 17 00:00:00 2001 From: Harman Singh Hira Date: Sun, 13 Sep 2026 20:06:54 +1200 Subject: [PATCH 2/3] Building --- .github/workflows/docker-publish.yml | 8 +-- .../docker-publish_20260913200046.yml | 49 +++++++++++++++++++ .../docker-publish_20260913200614.yml | 49 +++++++++++++++++++ 3 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 .history/.github/workflows/docker-publish_20260913200046.yml create mode 100644 .history/.github/workflows/docker-publish_20260913200614.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 70f4766..b4d6396 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,7 +7,6 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository_owner }}/opencadence jobs: build-and-push: @@ -35,6 +34,7 @@ jobs: run: | echo "date_tag=$(date -u +%Y.%m.%d)" >> "$GITHUB_OUTPUT" echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + echo "image_name=$(echo '${{ github.repository_owner }}/opencadence' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" - name: Build and push uses: docker/build-push-action@v6 @@ -44,6 +44,6 @@ jobs: build-args: | SOURCE_REVISION=${{ steps.vars.outputs.short_sha }} tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.date_tag }} - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ steps.vars.outputs.short_sha }} \ No newline at end of file + ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:latest + ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:${{ steps.vars.outputs.date_tag }} + ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:sha-${{ steps.vars.outputs.short_sha }} \ No newline at end of file diff --git a/.history/.github/workflows/docker-publish_20260913200046.yml b/.history/.github/workflows/docker-publish_20260913200046.yml new file mode 100644 index 0000000..70f4766 --- /dev/null +++ b/.history/.github/workflows/docker-publish_20260913200046.yml @@ -0,0 +1,49 @@ +name: Build and publish Docker image + +on: + push: + branches: [main] + workflow_dispatch: {} + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository_owner }}/opencadence + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Compute image tags + id: vars + run: | + echo "date_tag=$(date -u +%Y.%m.%d)" >> "$GITHUB_OUTPUT" + echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + build-args: | + SOURCE_REVISION=${{ steps.vars.outputs.short_sha }} + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.date_tag }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ steps.vars.outputs.short_sha }} \ No newline at end of file diff --git a/.history/.github/workflows/docker-publish_20260913200614.yml b/.history/.github/workflows/docker-publish_20260913200614.yml new file mode 100644 index 0000000..b4d6396 --- /dev/null +++ b/.history/.github/workflows/docker-publish_20260913200614.yml @@ -0,0 +1,49 @@ +name: Build and publish Docker image + +on: + push: + branches: [main] + workflow_dispatch: {} + +env: + REGISTRY: ghcr.io + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Compute image tags + id: vars + run: | + echo "date_tag=$(date -u +%Y.%m.%d)" >> "$GITHUB_OUTPUT" + echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + echo "image_name=$(echo '${{ github.repository_owner }}/opencadence' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + build-args: | + SOURCE_REVISION=${{ steps.vars.outputs.short_sha }} + tags: | + ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:latest + ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:${{ steps.vars.outputs.date_tag }} + ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:sha-${{ steps.vars.outputs.short_sha }} \ No newline at end of file From a589cbd8854a77901c9a195534e737a1a166630c Mon Sep 17 00:00:00 2001 From: Harman Singh Hira Date: Sun, 13 Sep 2026 20:08:35 +1200 Subject: [PATCH 3/3] Building --- .../docker-publish_20260913200046.yml | 49 ------------------- .../docker-publish_20260913200614.yml | 49 ------------------- 2 files changed, 98 deletions(-) delete mode 100644 .history/.github/workflows/docker-publish_20260913200046.yml delete mode 100644 .history/.github/workflows/docker-publish_20260913200614.yml diff --git a/.history/.github/workflows/docker-publish_20260913200046.yml b/.history/.github/workflows/docker-publish_20260913200046.yml deleted file mode 100644 index 70f4766..0000000 --- a/.history/.github/workflows/docker-publish_20260913200046.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Build and publish Docker image - -on: - push: - branches: [main] - workflow_dispatch: {} - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository_owner }}/opencadence - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to GHCR - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Compute image tags - id: vars - run: | - echo "date_tag=$(date -u +%Y.%m.%d)" >> "$GITHUB_OUTPUT" - echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - build-args: | - SOURCE_REVISION=${{ steps.vars.outputs.short_sha }} - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.date_tag }} - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ steps.vars.outputs.short_sha }} \ No newline at end of file diff --git a/.history/.github/workflows/docker-publish_20260913200614.yml b/.history/.github/workflows/docker-publish_20260913200614.yml deleted file mode 100644 index b4d6396..0000000 --- a/.history/.github/workflows/docker-publish_20260913200614.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Build and publish Docker image - -on: - push: - branches: [main] - workflow_dispatch: {} - -env: - REGISTRY: ghcr.io - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to GHCR - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Compute image tags - id: vars - run: | - echo "date_tag=$(date -u +%Y.%m.%d)" >> "$GITHUB_OUTPUT" - echo "short_sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" - echo "image_name=$(echo '${{ github.repository_owner }}/opencadence' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - build-args: | - SOURCE_REVISION=${{ steps.vars.outputs.short_sha }} - tags: | - ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:latest - ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:${{ steps.vars.outputs.date_tag }} - ${{ env.REGISTRY }}/${{ steps.vars.outputs.image_name }}:sha-${{ steps.vars.outputs.short_sha }} \ No newline at end of file