Skip to content

Update default.conf #43

Update default.conf

Update default.conf #43

Workflow file for this run

name: Plane Proxy CI-CD
on:
push:
branches: [main]
jobs:
build-publish:
runs-on: ubuntu-latest
env:
DOCKERFILE: Dockerfile
TAG: interproxy
steps:
- uses: actions/checkout@v2
- name: files-ls
# You may pin to the exact commit or the version.
uses: sigyl-actions/[email protected]
with:
folder: "/"
- name: Docker Login
uses: docker/[email protected]
with:
registry: ${{secrets.DOCKER_HOST}}
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: Build and push Docker images
# You may pin to the exact commit or the version.
# uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f5
uses: docker/[email protected]
with:
context: ./
file: Dockerfile
push: true
tags: |
${{secrets.DOCKER_HOST}}/${{env.TAG}}
deploy:
needs: build-publish
runs-on: ubuntu-latest
env:
TAG: interproxy
steps:
- name: SSH Command
# uses: nekiro/ssh-job@e0d177751aced5bcaf110ce4d782a681e5e12856
uses: nekiro/[email protected]
with:
command: docker pull ${{secrets.DOCKER_HOST}}/${{env.TAG}}; docker stop ${{env.TAG}}; docker rm ${{env.TAG}}; docker run --name ${{env.TAG}} --restart=unless-stopped -p 5002:80 --net inter_network -m=250m --dns=10.0.0.33 -d ${{secrets.DOCKER_HOST}}/${{env.TAG}};
host: ${{secrets.HOST}}
user: ${{secrets.CENTURION_USERNAME}}
password: ${{secrets.CENTURION_PASSWORD}}