Skip to content

Commit

Permalink
Support docker latest
Browse files Browse the repository at this point in the history
  • Loading branch information
metowolf authored Feb 25, 2025
1 parent 2bcce39 commit 5730450
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ "master" ]
paths:
- "data/**"
- ".github/**"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -35,7 +36,12 @@ jobs:
IMAGE_VERSION=`cat package.json | jq -r '.version'`
echo $DOCKER_TOKEN | docker login -u $DOCKER_USERNAME --password-stdin
docker build -t $DOCKER_USERNAME/vcards:$IMAGE_VERSION .
docker tag $DOCKER_USERNAME/vcards:$IMAGE_VERSION $DOCKER_USERNAME/vcards:latest
docker push $DOCKER_USERNAME/vcards:$IMAGE_VERSION
docker push $DOCKER_USERNAME/vcards:latest
echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin
docker build -t ghcr.io/$GITHUB_USERNAME/vcards:$IMAGE_VERSION .
docker tag ghcr.io/$GITHUB_USERNAME/vcards:$IMAGE_VERSION ghcr.io/$GITHUB_USERNAME/vcards:latest
docker push ghcr.io/$GITHUB_USERNAME/vcards:$IMAGE_VERSION
docker push ghcr.io/$GITHUB_USERNAME/vcards:latest

0 comments on commit 5730450

Please sign in to comment.