Skip to content

Commit 900329e

Browse files
authored
Create pr.yml
1 parent 75890f1 commit 900329e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/pr.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build PR
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Correct env
11+
run:
12+
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
13+
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v1
16+
17+
- name: Set up QEMU
18+
id: qemu
19+
uses: docker/setup-qemu-action@v1
20+
21+
- name: Set up Docker Buildx
22+
id: buildx
23+
uses: docker/setup-buildx-action@v1
24+
25+
- name: Login to GitHub Container Registry
26+
uses: docker/login-action@v1
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.repository_owner }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Build container
33+
uses: docker/build-push-action@v2
34+
with:
35+
context: .
36+
push: false
37+
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)