fix: publish image
Some checks are pending
Deploy ASP.NET MVC to OCI / build-and-deploy (push) Waiting to run
Some checks are pending
Deploy ASP.NET MVC to OCI / build-and-deploy (push) Waiting to run
This commit is contained in:
parent
c06c34a5c9
commit
6b0a58cc5e
@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: localACDC
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@ -21,8 +21,6 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: registry.redecarneir.us
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
@ -44,9 +42,6 @@ jobs:
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
port: 22
|
||||
script: |
|
||||
# Login no registry Docker
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login registry.redecarneir.us -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
# Para qualquer container que esteja usando a porta 80
|
||||
echo "=== Verificando containers na porta 80 ==="
|
||||
CONTAINERS_PORT_80=$(docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" | grep ':80->' | awk '{print $2}' || true)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user