@@ -2,17 +2,26 @@ name: "release"
22on :
33 push :
44 branches : [ "main" ]
5- paths : [ "**", "!**.md" ]
65env :
76 PACKAGE_NAME : " ghcr.io/at-cloud-pro/caddy-php"
8- PACKAGE_VERSION : " 4 .0.0"
7+ PACKAGE_VERSION : " 5 .0.0"
98jobs :
109 release :
11- runs-on : " ubuntu-22 .04"
10+ runs-on : " ubuntu-24 .04"
1211 steps :
13- - { name: "Login to GitHub Container Registry", uses: "docker/login-action@v2", with: { registry: "ghcr.io", username: "oskarbarcz", password: "${{secrets.GITHUB_TOKEN}}" } }
14- - { name: "Set Git user", run: "git config --global user.name Github Actions && git config --global user.email github-actions@github.com" }
15- - { name: "Clone Git repository", uses: "actions/checkout@v3" }
16- - { name: "Build Docker image with new tag", run: "docker build -t ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }} ." }
17- - { name: "Publish Docker image", run: "docker push ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }}" }
18- - { name: "Publish tags", run: "git tag ${{ env.PACKAGE_VERSION }} && git push && git push --tags" }
12+ - name : " Login to GitHub Container Registry"
13+ uses : " docker/login-action@v2"
14+ with :
15+ registry : " ghcr.io"
16+ username : " oskarbarcz"
17+ password : " ${{secrets.GITHUB_TOKEN}}"
18+ - name : " Set Git user"
19+ run : " git config --global user.name Github Actions && git config --global user.email github-actions@github.com"
20+ - name : " Clone Git repository"
21+ uses : " actions/checkout@v3"
22+ - name : " Build Docker image with new tag"
23+ run : " docker build -t ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }} ."
24+ - name : " Publish Docker image"
25+ run : " docker push ${{ env.PACKAGE_NAME}}:${{ env.PACKAGE_VERSION }}"
26+ - name : " Publish tags"
27+ run : " git tag ${{ env.PACKAGE_VERSION }} && git push && git push --tags"
0 commit comments