Skip to content

feat: auto deployment with Github Actions, use semver for tags - #4

Open
soodoh wants to merge 1 commit into
myanonamouse:mainfrom
soodoh:use-semver
Open

feat: auto deployment with Github Actions, use semver for tags#4
soodoh wants to merge 1 commit into
myanonamouse:mainfrom
soodoh:use-semver

Conversation

@soodoh

@soodoh soodoh commented Aug 7, 2025

Copy link
Copy Markdown

Imo, I find SemVer much easier to follow for Docker tags, as it is an industry standard (although not as consistently used for Docker tags).

I find this makes it easier to communicate the impact of any future changes (i.e. any environment variables that need to be changed/added eventually). Also, I like to use Renovate to automatically update my docker compose version tags, and sometimes Renovate can get confused as to which version tag is the latest (without hardcoding the image tags in my compose files to :latest, I like to use a specific version and update explicitly).

This avoids the need to ever run push.sh manually. Github actions will auto bump the version tag & push to ghcr.io. This can be updated to push to Dockerhub as well (see documented example), but I believe auth would needed to be added to this repo's secrets. Should be straightforward if wanted though.

Tested in my fork, and this seems to be working without any issues. But lmk if there are concerns.
I think this is a nice to have, so just sharing in case others want this automation here.

Comment on lines +78 to +94
scan:
needs: docker
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Run Trivy Vulnerability Scan
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'image'
image-ref: ghcr.io/${{ github.repository }}:${{ needs.semver.outputs.new_version }}
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional, but probably a nice to have since this image is intended to be distributed to many users.

@soodoh
soodoh force-pushed the use-semver branch 3 times, most recently from 80b2cfa to c154b18 Compare August 7, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant