Merge pull request #50 from flowbi/fix/parameter-toggle-positioning #17
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: release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| env: | |
| GO_VERSION: "1.22" | |
| CGO_ENABLED: 0 | |
| DOCKER_REPOSITORY: flowbi/pgweb | |
| GHCR_REPOSITORY: flowbi/pgweb | |
| jobs: | |
| docker-release: | |
| name: Publish Docker images | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Configure docker build context | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Set reference tags | |
| id: refs | |
| run: | | |
| echo "SOURCE_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | |
| echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | |
| echo "SOURCE_TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Login to Github Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GH_TOKEN }} | |
| - name: Build and push docker images | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: | | |
| ${{ env.DOCKER_REPOSITORY }}:${{ steps.refs.outputs.SOURCE_TAG }} | |
| ${{ env.DOCKER_REPOSITORY }}:latest | |
| ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ steps.refs.outputs.SOURCE_TAG }} | |
| ghcr.io/${{ env.GHCR_REPOSITORY }}:latest | |
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |