Update issue templates #14
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: Build and Push Docker Image | |
| on: | |
| push: | |
| branches: [ "main" ] # Triggers on push to main branch | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Check if secret is present | |
| run: | | |
| if [ -n "${{ secrets.DOCKER_HUB_USERNAME }}" ]; then | |
| echo "Secret is set." | |
| else | |
| echo "Secret is NOT set." | |
| exit 1 | |
| fi | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| # Note: Ensure these are lowercase | |
| tags: clydia/wall_e:latest, clydia/wall_e:${{ github.sha }} |