Repository navigation
moving commands to versioning.sh. #11
This file contains hidden or 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: "Docker build and push" | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| jobs: | |
| build_and_push: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: "Update Jq" | |
| run: sudo apt-get install --only-upgrade jq | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: "Build and Push" | |
| run: | | |
| chmod +x ./versioning.sh | |
| ./versioning.sh |