Skip to content

Commit

Permalink
address docker deploy steps and setting ref_name for github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshsusai committed Oct 16, 2024
1 parent 849e8c2 commit 2e8c878
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "*.deb,*.rpm"
name: ${{ github.ref }}
name: ${{ github.ref_name }}
tag: ${{ github.ref }}

Deploy_Docker_Image:
Expand All @@ -67,11 +67,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker image
run: sudo scripts/deploy-docker
- name: Build and Deploy Docker Image
run: |
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo scripts/deploy-docker

0 comments on commit 2e8c878

Please sign in to comment.