Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HoPGoldy authored Nov 13, 2023
1 parent a561017 commit db08353
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,28 @@ jobs:
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
get-package-version:

build-publish-docker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Package.json info
uses: rexdefuror/[email protected]
- uses: actions/checkout@v2

- run: echo "name - ${{ env.PACKAGE_NAME }}"
- run: echo "version - ${{ env.PACKAGE_VERSION }}"
- run: echo "description - ${{ env.PACKAGE_DESCRIPTION }}"
- name: Get Version
uses: rexdefuror/[email protected]

- uses: docker/setup-docker@v2
with:
dockerfile: Dockerfile
context: .
version: '20.10.11'

- name: Build the Docker image
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/cube-diary:${{ env.PACKAGE_VERSION }} .

- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push the Docker image
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/cube-diary:${{ env.PACKAGE_VERSION }}

- name: Display Version
run: echo "Package version is ${{ steps.get-version.outputs.version }}"

0 comments on commit db08353

Please sign in to comment.