File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ env :
10+ REGISTRY : ghcr.io
11+ IMAGE_NAME : ${{ github.repository }}
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Log in to the Container registry
21+ uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
22+ with :
23+ registry : ${{ env.REGISTRY }}
24+ username : ${{ github.actor }}
25+ password : ${{ secrets.GITHUB_TOKEN }}
26+
27+ - name : Change String Case
28+ id : case
29+ uses : ASzc/change-string-case-action@v2
30+ with :
31+ string : ${{ github.repository }}
32+
33+ - name : Display repository name
34+ run : echo ${{ steps.case.outputs.lowercase }}
35+
36+ - name : Find-and-replace strings
37+ id : slash
38+ uses : mad9000/actions-find-and-replace-string@2
39+ with :
40+ source : ${{ github.ref_name }}
41+ find : ' /'
42+ replace : ' -'
43+
44+ - name : Display issue name
45+ run : echo ${{ steps.slash.outputs.value }}
46+
47+ - name : Build the Docker image
48+ run : |
49+ docker build . --file Dockerfile.ace --tag equal-access-server:latest
50+ docker tag equal-access-server:latest ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
51+ docker push ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
You can’t perform that action at this time.
0 commit comments