Skip to content

changed workflow name #1

changed workflow name

changed workflow name #1

name: Build Pocketbase

Check failure on line 1 in .github/workflows/build-pocketbase-amd64.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-pocketbase-amd64.yml

Invalid workflow file

(Line: 29, Col: 17): Unrecognized named-value: 'PB_VERSION'. Located at position 1 within expression: PB_VERSION
on:
pull_request:
branches:
- production
types:
- closed
jobs:
if_merged:
if: github.event.pull_request.merged == true
name: Build Pocketbase and Push
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Container Metadata
uses: docker/metadata-action@v5
id: meta
with:
images: docker.io/${{ vars.DOCKERHUB_USERNAME }}/pocketbase
tags: |
type=raw,value=latest
type=raw.value=${{ PB_VERSION }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and Push
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64
push: true
build-args: |
ARCH=${{ vars.AMD64 }}
PB_VERSION=${{ vars.PB_VERSION }}