feat: Enhance squad bases data retrieval and UI with validation and W… #11
Workflow file for this run
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: Release and Publish Docker Image | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build app | |
| run: npm run build | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build Docker image | |
| run: | | |
| docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/scumdbwebanalyser:${{ github.ref_name }} . | |
| - name: Push Docker image | |
| run: | | |
| docker push ${{ secrets.DOCKERHUB_USERNAME }}/scumdbwebanalyser:${{ github.ref_name }} | |
| - name: Tag Docker image as latest | |
| run: | | |
| docker tag ${{ secrets.DOCKERHUB_USERNAME }}/scumdbwebanalyser:${{ github.ref_name }} ${{ secrets.DOCKERHUB_USERNAME }}/scumdbwebanalyser:latest | |
| - name: Push Docker image (latest) | |
| run: | | |
| docker push ${{ secrets.DOCKERHUB_USERNAME }}/scumdbwebanalyser:latest | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |