-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 818 Bytes
/
deployment.yml
File metadata and controls
35 lines (27 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and Deploy
on:
push:
branches: production
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout código
uses: actions/checkout@v3
- name: Configurar Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Instalar dependencias
run: npm install
- name: Ejecutar build
run: npm run build
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Construir imagen y subir a Docker Hub
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/botcodegeekery:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/botcodegeekery:latest