Skip to content

Commit

Permalink
Fix docker deploy (#86)
Browse files Browse the repository at this point in the history
* address docker deploy steps and setting ref_name for github releases

* adding a logout step

* changing name of workflow
  • Loading branch information
rajeshsusai authored Oct 16, 2024
1 parent 849e8c2 commit c15e1f5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NPM Pipeline
name: Publish

on:
workflow_run:
Expand Down 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,8 @@ 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
sudo docker logout

0 comments on commit c15e1f5

Please sign in to comment.