Skip to content

Commit c4021d4

Browse files
committed
Build on PR
1 parent 7460bcf commit c4021d4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11+
pull_request:
1112

1213
schedule:
1314
- cron: 43 2 * * 0
@@ -56,17 +57,15 @@ jobs:
5657
platforms: linux/amd64,linux/arm64
5758
cache-from: type=gha
5859
cache-to: type=gha,mode=max
59-
build-args:
60-
PSALM_VERSION: ${{ env.PSALM_VERSION }}
60+
build-args: PSALM_VERSION=${{ env.PSALM_VERSION }}
6161

6262
- name: Load image for current platform into local Docker
6363
# see https://github.com/docker/buildx/issues/59 for reason/limitation
6464
uses: docker/build-push-action@v6
6565
with:
6666
load: true
6767
tag: build
68-
build-args:
69-
PSALM_VERSION: ${{ env.PSALM_VERSION }}
68+
build-args: PSALM_VERSION=${{ env.PSALM_VERSION }}
7069

7170
- name: Run smoke tests
7271
run: |
@@ -79,9 +78,6 @@ jobs:
7978
with:
8079
platforms: linux/amd64,linux/arm64
8180
push: true
82-
tags:
83-
- ghcr.io/webfactory/psalm:${{ env.PSALM_VERSION }}
84-
labels:
85-
org.opencontainers.image.source: https://github.com/webfactory/docker-psalm
86-
build-args:
87-
PSALM_VERSION: ${{ env.PSALM_VERSION }}
81+
tags: ghcr.io/webfactory/psalm:${{ env.PSALM_VERSION }}
82+
labels: org.opencontainers.image.source=https://github.com/webfactory/docker-psalm
83+
build-args: PSALM_VERSION=${{ env.PSALM_VERSION }}

0 commit comments

Comments
 (0)