Skip to content

Commit

Permalink
release:0.0.3
Browse files Browse the repository at this point in the history
release: 0.0.2
  • Loading branch information
devxb authored Apr 11, 2024
2 parents c263fd0 + ccb5c78 commit 126200a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GHCR_TOKEN }}

- name: extract version
run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')"
Expand All @@ -60,7 +60,7 @@ jobs:
platforms: linux/arm64/v8
push: true
tags: |
ghcr.io/devxb/gitanimals-render:${{ steps.extract_version_name.outputs.version }}
ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
build-args: |
"DB_URL=${{ secrets.DB_URL }}"
"DB_USERNAME=${{ secrets.DB_USERNAME }}"
Expand Down Expand Up @@ -88,6 +88,6 @@ jobs:

- name: run server
run: |
sudo docker pull ghcr.io/devxb/gitanimals-render:${{ steps.extract_version_name.outputs.version }}
sudo docker pull ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}
sudo docker ps -q --filter "expose=8080" | xargs sudo docker stop | xargs sudo docker rm
sudo docker run -d -p ghcr.io/devxb/gitanimals-render:${{ steps.extract_version_name.outputs.version }}
sudo docker run -d -p 8080:8080 ghcr.io/devxb/gitanimals:${{ steps.extract_version_name.outputs.version }}

0 comments on commit 126200a

Please sign in to comment.