Skip to content

Commit

Permalink
Create cd-clientes-qa.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RominaCalaniCruz authored Apr 16, 2024
1 parent df74ac6 commit 1926331
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/cd-clientes-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CD-CLIENTES-QA

on:
workflow_dispatch:

env:
SSH_PRIVATE_KEY: ${{ secrets.PEM_CLIENTES_QA }}
REMOTE_USER: ec2-user
REMOTE_HOST: ${{ secrets.IP_CLIENTES_QA }}
APP_NAME: app.js
DOCKERHUB_TOKEN: ${{ DH_TOKEN_CLIENTES }}
DOCKERHUB_USERNAME: romicalani

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Iniciar sesion en Docker Hub
uses: docker/login-action@v2
with:
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ env.DOCKERHUB_TOKEN }}

- name: Generar y Subir imagen Docker
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./Dockerfile
tags: ${{ env.DOCKERHUB_USERNAME }}/my-node-app:latest

0 comments on commit 1926331

Please sign in to comment.