⬆️ Bump globalid from 1.3.0 to 1.4.0 #5955
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Container Builds | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| workflow_dispatch: | |
| inputs: | |
| dockerPush: | |
| description: 'Push image to docker hub?' | |
| required: true | |
| type: boolean | |
| default: false | |
| schedule: | |
| # * is a special character in YAML so you have to quote this string | |
| # Run every day at 5:24 UTC - build 'nightly' docker containers | |
| - cron: "24 17 * * *" | |
| pull_request: | |
| types: | |
| - labeled | |
| permissions: | |
| contents: read | |
| env: | |
| DOCKER_PUSH: true | |
| jobs: | |
| docker-configured: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| enabled: ${{ steps.check.outputs.enabled }} | |
| steps: | |
| - id: check | |
| env: | |
| DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
| run: | | |
| if [ -n "${DOCKER_USERNAME}" ]; then | |
| echo "enabled=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "enabled=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| pwpush-container: | |
| needs: docker-configured | |
| if: needs.docker-configured.outputs.enabled == 'true' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: campfire-configured | |
| env: | |
| CAMPFIRE_MESSAGES_URL: ${{ secrets.CAMPFIRE_MESSAGES_URL }} | |
| run: | | |
| if [ -n "${CAMPFIRE_MESSAGES_URL}" ]; then | |
| echo "configured=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "configured=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} | |
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | |
| fetch-depth: 1 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 | |
| - name: Populate Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6 | |
| with: | |
| images: ${{ secrets.DOCKER_USERNAME }}/pwpush | |
| tags: | | |
| type=ref,event=pr,format=pr-{{ref}}-docker | |
| type=match,pattern=stable | |
| type=schedule,pattern=nightly | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{major}} | |
| type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} | |
| - name: Login to DockerHub | |
| if: github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork | |
| uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7 | |
| with: | |
| context: . | |
| file: ./containers/docker/Dockerfile | |
| platforms: linux/amd64 | |
| push: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| cache-from: | | |
| type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush:buildcache | |
| type=gha | |
| cache-to: | | |
| type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush:buildcache,mode=max,ignore-error=${{env.DOCKER_PUSH == 'false'}} | |
| type=gha,mode=max | |
| - name: Post job failure details to Campfire | |
| if: failure() && steps.campfire-configured.outputs.configured == 'true' && github.ref == 'refs/heads/master' | |
| continue-on-error: true | |
| uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6 | |
| with: | |
| messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }} | |
| template: job_failed | |
| public-gateway-container: | |
| needs: [docker-configured, pwpush-container] | |
| if: needs.docker-configured.outputs.enabled == 'true' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: campfire-configured | |
| env: | |
| CAMPFIRE_MESSAGES_URL: ${{ secrets.CAMPFIRE_MESSAGES_URL }} | |
| run: | | |
| if [ -n "${CAMPFIRE_MESSAGES_URL}" ]; then | |
| echo "configured=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "configured=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} | |
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | |
| fetch-depth: 1 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4 | |
| with: | |
| image: tonistiigi/binfmt:master | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 | |
| - name: Populate Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6 | |
| with: | |
| images: ${{ secrets.DOCKER_USERNAME }}/pwpush-public-gateway | |
| tags: | | |
| type=ref,event=pr,format=pr-{{ref}}-docker | |
| type=match,pattern=stable | |
| type=schedule,pattern=nightly | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{major}} | |
| type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} | |
| - name: Login to DockerHub | |
| if: github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork | |
| uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7 | |
| with: | |
| context: . | |
| file: ./containers/docker/Dockerfile.public-gateway | |
| platforms: linux/amd64 | |
| push: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| cache-from: | | |
| type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush-public-gateway:buildcache | |
| type=gha | |
| cache-to: | | |
| type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush-public-gateway:buildcache,mode=max,ignore-error=${{env.DOCKER_PUSH == 'false'}} | |
| type=gha,mode=max | |
| - name: Post job failure details to Campfire | |
| if: failure() && steps.campfire-configured.outputs.configured == 'true' && github.ref == 'refs/heads/master' | |
| continue-on-error: true | |
| uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6 | |
| with: | |
| messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }} | |
| template: job_failed | |
| worker-container: | |
| needs: [docker-configured, pwpush-container] | |
| if: needs.docker-configured.outputs.enabled == 'true' && ((github.event.label && github.event.label.name == 'docker') || github.event_name != 'pull_request') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: campfire-configured | |
| env: | |
| CAMPFIRE_MESSAGES_URL: ${{ secrets.CAMPFIRE_MESSAGES_URL }} | |
| run: | | |
| if [ -n "${CAMPFIRE_MESSAGES_URL}" ]; then | |
| echo "configured=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "configured=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }} | |
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | |
| fetch-depth: 1 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4 | |
| with: | |
| image: tonistiigi/binfmt:master | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 | |
| - name: Populate Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6 | |
| with: | |
| images: ${{ secrets.DOCKER_USERNAME }}/pwpush-worker | |
| tags: | | |
| type=ref,event=pr,format=pr-{{ref}}-docker | |
| type=match,pattern=stable | |
| type=schedule,pattern=nightly | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{major}} | |
| type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} | |
| - name: Login to DockerHub | |
| if: github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork | |
| uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7 | |
| with: | |
| context: . | |
| file: ./containers/docker/Dockerfile.worker | |
| platforms: linux/amd64 | |
| push: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| cache-from: | | |
| type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush-worker:buildcache | |
| type=gha | |
| cache-to: | | |
| type=registry,ref=${{ secrets.DOCKER_USERNAME }}/pwpush-worker:buildcache,mode=max,ignore-error=${{env.DOCKER_PUSH == 'false'}} | |
| type=gha,mode=max | |
| - name: Post job failure details to Campfire | |
| if: failure() && steps.campfire-configured.outputs.configured == 'true' && github.ref == 'refs/heads/master' | |
| continue-on-error: true | |
| uses: shane-lamb/campfire-notify-action@df63cf73810147306276e281bedccf71c1519caf # v1.1.6 | |
| with: | |
| messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }} | |
| template: job_failed |