Bump actions/setup-go from 5 to 6 #26
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 Image CI | ||
|
Check failure on line 1 in .github/workflows/docker-image.yml
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Build the Docker image | ||
| run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) | ||
| name: Deploy New Design | ||
| on: | ||
| push: | ||
| branches: | ||
| - main # Trigger deployment on push to the main branch | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v3 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '16' | ||
| - name: Install Dependencies | ||
| run: npm install | ||
| - name: Build Project | ||
| run: npm run build | ||
| - name: Deploy to Hosting Service | ||
| env: | ||
| API_KEY: ${{ secrets.DEPLOY_KEY }} | ||
| run: npm run deploy | ||