CI/CD Update for Gitea Actions
This commit is contained in:
parent
57238ce57a
commit
1f85b97467
23
.github/workflows/docker-image.yml
vendored
23
.github/workflows/docker-image.yml
vendored
@ -1,23 +0,0 @@
|
|||||||
name: Docker Image CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
env:
|
|
||||||
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
|
||||||
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: docker build . --file Dockerfile --tag v0idf1sh/nodbot
|
|
||||||
- name: Log into Docker Hub
|
|
||||||
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
|
||||||
- name: Push image to Docker Hub
|
|
||||||
run: docker push v0idf1sh/nodbot
|
|
35
.github/workflows/pe-docker.yml
vendored
Normal file
35
.github/workflows/pe-docker.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: NodBot Production Dockerization
|
||||||
|
|
||||||
|
on:
|
||||||
|
commit:
|
||||||
|
branches:
|
||||||
|
- pe
|
||||||
|
|
||||||
|
env:
|
||||||
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
||||||
|
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Pull latest from Git
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
whoami
|
||||||
|
cd /root/nodbot
|
||||||
|
git pull
|
||||||
|
git checkout pe
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: |
|
||||||
|
cd /root/nodbot
|
||||||
|
docker build . --file Dockerfile --tag v0idf1sh/nodbot-pe
|
||||||
|
- name: Log into Docker Hub
|
||||||
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
||||||
|
- name: Push image to Docker Hub
|
||||||
|
run: |
|
||||||
|
cd /root/nodbot
|
||||||
|
docker push v0idf1sh/nodbot-pe
|
35
.github/workflows/production-docker.yml
vendored
Normal file
35
.github/workflows/production-docker.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: NodBot Production Dockerization
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
||||||
|
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Pull latest from Git
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
whoami
|
||||||
|
cd /root/nodbot
|
||||||
|
git pull
|
||||||
|
git checkout $GITHUB_HEAD_REF
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: |
|
||||||
|
cd /root/nodbot
|
||||||
|
docker build . --file Dockerfile --tag v0idf1sh/nodbot
|
||||||
|
- name: Log into Docker Hub
|
||||||
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
||||||
|
- name: Push image to Docker Hub
|
||||||
|
run: |
|
||||||
|
cd /root/nodbot
|
||||||
|
docker push v0idf1sh/nodbot
|
Loading…
Reference in New Issue
Block a user