replace drone ci with actions
Some checks failed
default / build-and-deploy (push) Failing after 25s
Some checks failed
default / build-and-deploy (push) Failing after 25s
This commit is contained in:
parent
1e6022df08
commit
d1dd661b9a
2 changed files with 33 additions and 36 deletions
36
.drone.yml
36
.drone.yml
|
@ -1,36 +0,0 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry:
|
||||
from_secret: CI_REGISTRY
|
||||
username:
|
||||
from_secret: CI_REGISTRY_USER
|
||||
password:
|
||||
from_secret: CI_REGISTRY_PASSWORD
|
||||
repo:
|
||||
from_secret: CI_APP_IMAGE
|
||||
tags:
|
||||
- latest
|
||||
- name: deploy
|
||||
image: alpine:latest
|
||||
environment:
|
||||
DEPLOYER_AUTH:
|
||||
from_secret: DEPLOYER_AUTH
|
||||
DEPLOYER_URL:
|
||||
from_secret: DEPLOYER_URL
|
||||
commands:
|
||||
- apk add --no-cache curl
|
||||
- curl -H "$DEPLOYER_AUTH" $DEPLOYER_URL
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- master
|
33
.gitea/workflows/deploy.yml
Normal file
33
.gitea/workflows/deploy.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: default
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.neur0tx.site
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest
|
||||
|
||||
- name: Deploy
|
||||
if: ${{ success() }}
|
||||
run: |
|
||||
apk add --no-cache curl
|
||||
curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }}
|
||||
container: alpine:latest
|
Loading…
Add table
Reference in a new issue