@@ -1,59 +0,0 @@
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "docker/**"
|
||||
- ".gitea/**"
|
||||
schedule:
|
||||
- cron: "0 02 * * *"
|
||||
jobs:
|
||||
|
||||
ssh-client-container:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Log in to git.limbosolutions.com container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.limbosolutions.com
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push ssh-client Docker images
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ${{gitea.workspace}}/docker/ssh-client/Dockerfile
|
||||
push: true
|
||||
tags: git.limbosolutions.com/kb/ssh-client
|
||||
|
||||
|
||||
|
||||
ssh-server-container:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Log in to git.limbosolutions.com container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.limbosolutions.com
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build ssh-server images
|
||||
run: |
|
||||
cd ${{gitea.workspace}}/docker/ssh-server
|
||||
BUILD_ENV=prod ./scripts/build.sh
|
||||
|
||||
- name: Push image
|
||||
run: docker push git.limbosolutions.com/kb/ssh-server
|
||||
|
||||
|
||||
40
.gitea/workflows/ssh-client-build-deploy.yaml
Normal file
40
.gitea/workflows/ssh-client-build-deploy.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "docker/ssh-client/**"
|
||||
- ".gitea/ssh-client**"
|
||||
schedule:
|
||||
- cron: "0 14 * * 6" #every Saturday at 2:00 PM,
|
||||
|
||||
jobs:
|
||||
|
||||
ssh-client:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{gitea.workspace}}/docker/ssh-client
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Log in to git.limbosolutions.com container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.limbosolutions.com
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push ssh-client Docker images
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: git.limbosolutions.com/kb/ssh-client
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
36
.gitea/workflows/ssh-server-build-deploy.yaml
Normal file
36
.gitea/workflows/ssh-server-build-deploy.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "docker/ssh-server/**"
|
||||
- ".gitea/ssh-server**"
|
||||
schedule:
|
||||
- cron: "0 14 * * 6" #every Saturday at 2:00 PM,
|
||||
|
||||
jobs:
|
||||
|
||||
ssh-server:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{gitea.workspace}}/docker/ssh-server
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Log in to git.limbosolutions.com container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.limbosolutions.com
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build ssh-server images
|
||||
run: BUILD_ENV=prod ./scripts/build.sh
|
||||
|
||||
- name: Push image
|
||||
run: docker push git.limbosolutions.com/kb/ssh-server
|
||||
|
||||
|
||||
Reference in New Issue
Block a user