File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubicloud-standard-8
11+ environment : production
12+ steps :
13+ - name : Set up QEMU
14+ uses : docker/setup-qemu-action@v3
15+ - name : Set up Docker Buildx
16+ uses : docker/setup-buildx-action@v3
17+ - name : Login to GitHub Package Registry
18+ uses : docker/login-action@v2
19+ with :
20+ registry : ghcr.io
21+ username : ${{ github.repository_owner }}
22+ password : ${{ secrets.GITHUB_TOKEN }}
23+ - name : Checkout the postgres-extensions repo
24+ uses : actions/checkout@v4
25+ with :
26+ submodules : true
27+ fetch-depth : 0
28+ token : ${{ secrets.GITHUB_TOKEN }}
29+ - name : Get tag
30+ id : tagger
31+ run : echo "::set-output name=tag::$(git describe --tags HEAD)"
32+ - name : Build and push
33+ uses : docker/build-push-action@v6
34+ env :
35+ DOCKER_BUILDKIT : 1
36+ with :
37+ context : .
38+ platforms : linux/amd64,linux/arm64
39+ push : true
40+ tags : |
41+ ghcr.io/porter-dev/postgres-extensions:${{ steps.tagger.outputs.tag }}
42+ ghcr.io/porter-dev/postgres-extensions:latest
You can’t perform that action at this time.
0 commit comments