Skip to content

Commit

Permalink
testing aws deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
LazaroQueiroz committed Nov 12, 2024
1 parent 234c318 commit c03133a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-oca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: CI/CD OCA

on:
push:
tags: ["*"]
branch: "teste-deploy-aws"

jobs:
build:
runs-on: oca-self-hosted-runner
runs-on: ["x1-aws-self-hosted-runner", "x2-aws-self-hosted-runner"]
steps:
- uses: actions/checkout@v4

- name: Update docker metadata with the tag
- name: Update docker metadata with the tag
uses: docker/metadata-action@v4
id: meta
with:
Expand Down Expand Up @@ -47,11 +47,11 @@ jobs:
NEXT_PUBLIC_MAIL_APP_PASS=${{ secrets.NEXT_PUBLIC_MAIL_APP_PASS }}
- name: Pull the latest image
run: sudo docker pull ${{ vars.DOCKER_IMAGE_PROD }}:latest
run: sudo docker pull ${{ vars.DOCKER_IMAGE_PROD }}:latest

- name: Stop existing container
run: sudo docker rm -f ${{ vars.CONTAINER_NAME_PROD }} || true
run: sudo docker rm -f ${{ vars.CONTAINER_NAME_PROD }} || true

- name: Run new container
run: sudo docker run --name ${{ vars.CONTAINER_NAME_PROD }} -p ${{ vars.HOST_PORT_PROD }}:${{ vars.CONTAINER_PORT }} -d ${{ vars.DOCKER_IMAGE_PROD }}:latest

Expand Down

0 comments on commit c03133a

Please sign in to comment.