File tree Expand file tree Collapse file tree 1 file changed +75
-0
lines changed
Expand file tree Collapse file tree 1 file changed +75
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is the temporary workflow for building and pushing imgproxy-base images with v4-dev tag.
2+ name : Build Dev image
3+
4+ on :
5+ workflow_dispatch :
6+ inputs :
7+ ref :
8+ description : " The git reference (branch or tag) to build the image from"
9+ required : true
10+ default : " version/4"
11+ tag :
12+ description : " The tag to push the image with"
13+ required : true
14+ default : " v4-dev"
15+
16+ concurrency :
17+ group : build-v4-dev-${{ github.ref }}
18+ cancel-in-progress : true
19+
20+ jobs :
21+ build :
22+ if : github.repository_owner == 'imgproxy'
23+ strategy :
24+ matrix :
25+ build :
26+ - arch : amd64
27+ dockerPlatform : linux/amd64
28+ image : linux-5.0
29+ - arch : arm64
30+ dockerPlatform : linux/arm64/v8
31+ image : arm-3.0
32+ runs-on :
33+ - codebuild-imgproxy-${{ github.run_id }}-${{ github.run_attempt }}
34+ - image:${{ matrix.build.image }}
35+ permissions :
36+ contents : read
37+ packages : write
38+ steps :
39+ - name : Checkout
40+ uses : actions/checkout@v4
41+ with :
42+ ref : ${{ github.event.inputs.ref }}
43+
44+ - name : Login to GitHub Container Registry
45+ uses : docker/login-action@v3
46+ with :
47+ registry : ghcr.io
48+ username : ${{ github.actor }}
49+ password : ${{ secrets.GITHUB_TOKEN }}
50+
51+ - name : Build and push
52+ uses : docker/build-push-action@v6
53+ with :
54+ tags : ghcr.io/imgproxy/imgproxy-base:${{ github.event.inputs.tag }}-${{ matrix.build.arch }}
55+ platforms : ${{ matrix.build.dockerPlatform }}
56+ provenance : false
57+ push : true
58+
59+ push_manifests :
60+ needs : build
61+ runs-on : ubuntu-latest
62+ permissions :
63+ contents : read
64+ packages : write
65+ steps :
66+ - name : Login to GitHub Container Registry
67+ uses : docker/login-action@v3
68+ with :
69+ registry : ghcr.io
70+ username : ${{ github.actor }}
71+ password : ${{ secrets.GITHUB_TOKEN }}
72+
73+ - name : Push manifests
74+ run : |
75+ docker buildx imagetools create -t ghcr.io/imgproxy/imgproxy-base:${{ github.event.inputs.tag }} ghcr.io/imgproxy/imgproxy-base:${{ github.event.inputs.tag }}-amd64 ghcr.io/imgproxy/imgproxy-base:${{ github.event.inputs.tag }}-arm64
You can’t perform that action at this time.
0 commit comments