|
| 1 | +env: |
| 2 | + OEM: ${{ inputs.oem }} |
| 3 | +jobs: |
| 4 | + logical-backup: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + steps: |
| 7 | + - name: Checkout |
| 8 | + uses: actions/checkout@v3 |
| 9 | + - name: Set up QEMU |
| 10 | + uses: docker/setup-qemu-action@v2 |
| 11 | + - name: Set up Docker Buildx |
| 12 | + uses: docker/setup-buildx-action@v2 |
| 13 | + - name: Login to DockerHub |
| 14 | + uses: docker/login-action@v2 |
| 15 | + with: |
| 16 | + password: ${{ secrets.DOCKERHUB_PASSWORD }} |
| 17 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 18 | + - name: Build and push |
| 19 | + uses: docker/build-push-action@v3 |
| 20 | + with: |
| 21 | + context: logical-backup |
| 22 | + file: logical-backup/Dockerfile |
| 23 | + platforms: linux/amd64,linux/arm64 |
| 24 | + provenance: false |
| 25 | + pull: true |
| 26 | + push: true |
| 27 | + sbom: false |
| 28 | + tags: ${{ secrets.DOCKERHUB_USERNAME }}/logical-backup:latest |
| 29 | + pgbouncer: |
| 30 | + runs-on: ubuntu-latest |
| 31 | + steps: |
| 32 | + - name: Checkout |
| 33 | + uses: actions/checkout@v3 |
| 34 | + - name: Set up QEMU |
| 35 | + uses: docker/setup-qemu-action@v2 |
| 36 | + - name: Set up Docker Buildx |
| 37 | + uses: docker/setup-buildx-action@v2 |
| 38 | + - name: Login to DockerHub |
| 39 | + uses: docker/login-action@v2 |
| 40 | + with: |
| 41 | + password: ${{ secrets.DOCKERHUB_PASSWORD }} |
| 42 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 43 | + - name: Build and push |
| 44 | + uses: docker/build-push-action@v3 |
| 45 | + with: |
| 46 | + file: docker/pooler.Dockerfile |
| 47 | + platforms: linux/amd64,linux/arm64 |
| 48 | + provenance: false |
| 49 | + pull: true |
| 50 | + push: true |
| 51 | + sbom: false |
| 52 | + tags: ${{ secrets.DOCKERHUB_USERNAME }}/pgbouncer:latest |
| 53 | + postgres-operator: |
| 54 | + runs-on: ubuntu-latest |
| 55 | + steps: |
| 56 | + - name: Checkout |
| 57 | + uses: actions/checkout@v3 |
| 58 | + with: |
| 59 | + fetch-depth: 0 |
| 60 | + - uses: actions/setup-go@v5 |
| 61 | + with: |
| 62 | + go-version: "~1.22" |
| 63 | + - name: Set up QEMU |
| 64 | + uses: docker/setup-qemu-action@v2 |
| 65 | + - name: Set up Docker Buildx |
| 66 | + uses: docker/setup-buildx-action@v2 |
| 67 | + - name: Login to DockerHub |
| 68 | + uses: docker/login-action@v2 |
| 69 | + with: |
| 70 | + password: ${{ secrets.DOCKERHUB_PASSWORD }} |
| 71 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 72 | + - name: Building |
| 73 | + run: make deps && make codegen && hack/rename-codegen.sh && for ta in amd64 arm64; do go env -w GOARCH=$ta && make local && kubectl-pg/build.sh $PWD/build/kubectl-pg && mv build docker/$ta; done;tree docker |
| 74 | + - name: Build and push |
| 75 | + uses: docker/build-push-action@v3 |
| 76 | + with: |
| 77 | + context: docker |
| 78 | + platforms: linux/amd64,linux/arm64 |
| 79 | + provenance: false |
| 80 | + pull: true |
| 81 | + push: true |
| 82 | + sbom: false |
| 83 | + tags: ${{ secrets.DOCKERHUB_USERNAME }}/postgres-operator:${{ env.OEM }} |
| 84 | +name: buildImage |
| 85 | +on: |
| 86 | + workflow_dispatch: |
| 87 | + inputs: |
| 88 | + oem: |
| 89 | + default: sensoro |
| 90 | + description: OEM |
| 91 | + required: true |
| 92 | + type: string |
0 commit comments