Merge pull request #473 from tcet-opensource/development #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dockerhub | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Uploading Img | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Building Docker Image | |
run: docker build -t ${{ secrets.username }}/erp-backend:prod . | |
- name: DockerHub Login | |
run: docker login -u "${{ secrets.username }}" -p "${{ secrets.pass }}" | |
- name: Uploading Image to DockerHub | |
run: docker push ${{ secrets.username }}/erp-backend:prod |