Skip to content

Bump actions/setup-go from 5 to 6 #26

Bump actions/setup-go from 5 to 6

Bump actions/setup-go from 5 to 6 #26

Workflow file for this run

name: Docker Image CI

Check failure on line 1 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-image.yml

Invalid workflow file

(Line: 19, Col: 1): 'name' is already defined, (Line: 21, Col: 1): 'on' is already defined, (Line: 26, Col: 1): 'jobs' is already defined
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