Skip to content

Commit

Permalink
add versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit267 committed Jan 25, 2024
1 parent 3d03a26 commit 979b04f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v3

- uses: nyaa8/package-version@v1
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
Expand All @@ -26,5 +26,6 @@ jobs:

- name: Build the Docker image
run: |
docker build . --tag ghcr.io/rohit267/cloudflare-node-ddns:latest --tag ghcr.io/rohit267/cloudflare-node-ddns:${GITHUB_SHA::7}
docker build . -t ghcr.io/rohit267/cloudflare-node-ddns:${env.PACKAGE_VERSION} -t ghcr.io/rohit267/cloudflare-node-ddns:latest
docker push ghcr.io/rohit267/cloudflare-node-ddns:${env.PACKAGE_VERSION}
docker push ghcr.io/rohit267/cloudflare-node-ddns:latest
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudflare-dns-updater",
"version": "0.0.1",
"version": "0.0.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 979b04f

Please sign in to comment.