File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build-push-test-docker-image
2+
3+ on :
4+ push :
5+ branches : feature/build-and-publish-test-container
6+ workflow_dispatch :
7+
8+ jobs :
9+ build-push-test-docker-image :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ packages : write
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+
17+ - name : Build the app
18+ uses : openconext/build-and-publish-test-container/php82-node20@main
19+ with :
20+ use_yarn : true
21+
22+ - name : Set up QEMU
23+ uses : docker/setup-qemu-action@v2
24+
25+ - name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v2
27+
28+ - name : Login to GitHub Container Registry
29+ uses : docker/login-action@v2
30+ with :
31+ registry : ghcr.io
32+ username : ${{ github.repository_owner }}
33+ password : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - name : Set docker labels and tags
36+ id : meta
37+ uses : docker/metadata-action@v5
38+ with :
39+ images : ghcr.io/openconext/stepup-ra/stepup-ra
40+ flavor : |
41+ latest=false
42+ suffix=-test
43+ tags : |
44+ type=ref,event=tag
45+ type=semver,pattern={{version}}
46+ type=sha
47+ type=raw,suffix=,value=test
48+
49+ - name : Build and push the TEST image
50+ uses : docker/build-push-action@v4
51+ with :
52+ context : .
53+ file : docker/Dockerfile.test
54+ platforms : linux/amd64,linux/arm64
55+ push : true
56+ tags : ${{ steps.meta.outputs.tags }}
57+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments