File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 11name : Docker Builds
22
33on :
4+ workflow_dispatch :
45 push :
56 branches :
67 - main
1314 - " package-lock.json"
1415 - " nginx.conf"
1516 - " __posts"
17+ - " __books"
1618 schedule :
1719 - cron : " 0 03 * * 1-5"
1820
@@ -59,18 +61,20 @@ jobs:
5961 echo "IS_SNAPSHOT=false" >> $GITHUB_OUTPUT
6062 fi
6163
62- - name : ⛏️ Extract metadata (tags, labels) for Docker
64+ - name : 🐳 Docker meta
6365 id : meta
64- uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
66+ uses : docker/metadata-action@v5
6567 with :
6668 images : ghcr.io/${{ github.repository }}
6769 tags : |
6870 type=raw,value=${{ steps.get_package_version.outputs.VERSION }}
69- type=raw,value=latest,enable={{is_default_branch }}
71+ type=raw,value=latest,enable=${{ steps.check_snapshot.outputs.IS_SNAPSHOT == 'false' }}
7072
7173 - name : 🏗️ Build and push production image
7274 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
7375 with :
7476 context : .
7577 file : ./Dockerfile
7678 push : true
79+ tags : ${{ steps.meta.outputs.tags }}
80+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1- # My Blog
1+ # My Personal Blog
22[ ![ Continuous Integration] ( https://github.com/josimar-silva/blog/actions/workflows/ci.yaml/badge.svg )] ( https://github.com/josimar-silva/blog/actions/workflows/ci.yaml )
33[ ![ Continuous Delivery] ( https://github.com/josimar-silva/blog/actions/workflows/cd.yaml/badge.svg )] ( https://github.com/josimar-silva/blog/actions/workflows/cd.yaml )
4- [ ![ Docker] ( https://github.com/josimar-silva/blog/actions/workflows/docker.yaml/badge.svg )] ( https://github.com/josimar-silva/blog/actions/workflows/docker.yaml )
4+ [ ![ Docker Builds] ( https://github.com/josimar-silva/blog/actions/workflows/docker.yaml/badge.svg )] ( https://github.com/josimar-silva/blog/actions/workflows/docker.yaml )
5+ [ ![ Spell Check] ( https://github.com/josimar-silva/blog/actions/workflows/spellcheck.yaml/badge.svg )] ( https://github.com/josimar-silva/blog/actions/workflows/spellcheck.yaml )
6+ [ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=josimar-silva_blog&metric=alert_status&token=50ca459a4c40d5c9710c39c10d7c75a31c5a477d )] ( https://sonarcloud.io/summary/new_code?id=josimar-silva_blog )
7+ [ ![ Coverage] ( https://sonarcloud.io/api/project_badges/measure?project=josimar-silva_blog&metric=coverage&token=50ca459a4c40d5c9710c39c10d7c75a31c5a477d )] ( https://sonarcloud.io/summary/new_code?id=josimar-silva_blog )
58
6- - josimar-silva.com
7- - blog.josimar-silva.com
8-
9- Personal Blog
You can’t perform that action at this time.
0 commit comments