diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..4b290484 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,41 @@ +name: Release Build + +on: + push: + tags: ["v*"] + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + + - uses: docker/setup-buildx-action@v3 + + - name: Log in to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push release image + uses: docker/build-push-action@v6 + with: + context: . + file: Dockerfile.release + push: true + tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }} + build-args: | + OLR_VERSION=${{ github.ref_name }} + UIDOLR=1001 + GIDOLR=1001 + GIDORA=54322 + WITHORACLE=1 + WITHKAFKA=1 + WITHPROTOBUF=1 + WITHPROMETHEUS=1