feat(panel): Add manage user (#14) #12
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: CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
# - name: Log in to Docker Hub | |
# uses: docker/login-action@v2 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_PASS }} | |
- name: Build the Docker image | |
id: build_image | |
run: | | |
docker build -t test/negar-frontend:latest . | |
# docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/negar-frontend:latest . | |
- name: Bump version and push tag | |
if: steps.build_image.outcome == 'success' | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Push the Docker image | |
# if: steps.tag_version.outputs.new_tag != '' | |
# run: | | |
# docker tag ${{ secrets.DOCKERHUB_USERNAME }}/negar-frontend:latest ${{ secrets.DOCKERHUB_USERNAME }}/negar-frontend:${{ steps.tag_version.outputs.new_tag }} | |
# docker push ${{ secrets.DOCKERHUB_USERNAME }}/negar-frontend:${{ steps.tag_version.outputs.new_tag }} |