Skip to content

Commit

Permalink
adding a create-release action and building docker image does not nee…
Browse files Browse the repository at this point in the history
…d artifacts
  • Loading branch information
rajeshsusai committed Oct 16, 2024
1 parent 5244312 commit 69fbcac
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,24 @@ jobs:
sudo gem install fpm
sudo scripts/build-packages
- name: Upload build artifact
uses: actions/upload-artifact@v4
- name: Create Release
uses: ncipollo/release-action@v1
with:
name: awsudo:${{github.ref_name}}
path: awsudo-${{github.ref_name}}.tgz
artifacts: "*.deb,*.rpm"
name: ${{ github.ref }}
tag: ${{ github.ref }}

Deploy_Docker_Image:
runs-on: ubuntu-latest
needs: Publish
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: awsudo:${{github.ref_name}}

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

- name: Build Docker image
run: scripts/deploy-docker
run: sudo scripts/deploy-docker

0 comments on commit 69fbcac

Please sign in to comment.