Try gitea workflow
This commit is contained in:
parent
79bc44e3ff
commit
e11694bfbf
91
.drone.yml
91
.drone.yml
@ -1,91 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: validator
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: registry.itzana.me
|
|
||||||
# repo: registry.itzana.me/strafesnet/maptest-frontend
|
|
||||||
dockerfile: validation/Containerfile
|
|
||||||
context: validation
|
|
||||||
# tags:
|
|
||||||
# - ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
|
||||||
# - ${DRONE_BRANCH}
|
|
||||||
username:
|
|
||||||
from_secret: REGISTRY_USER
|
|
||||||
password:
|
|
||||||
from_secret: REGISTRY_PASS
|
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# - master
|
|
||||||
# - staging
|
|
||||||
|
|
||||||
- name: api
|
|
||||||
image: plugins/docker
|
|
||||||
environment:
|
|
||||||
DOCKER_BUILDKIT: 1
|
|
||||||
settings:
|
|
||||||
registry: registry.itzana.me
|
|
||||||
# repo: registry.itzana.me/strafesnet/maptest-api
|
|
||||||
dockerfile: Containerfile
|
|
||||||
# tags:
|
|
||||||
# - ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
|
||||||
# - ${DRONE_BRANCH}
|
|
||||||
username:
|
|
||||||
from_secret: REGISTRY_USER
|
|
||||||
password:
|
|
||||||
from_secret: REGISTRY_PASS
|
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# - master
|
|
||||||
# - staging
|
|
||||||
|
|
||||||
- name: frontend
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: registry.itzana.me
|
|
||||||
# repo: registry.itzana.me/strafesnet/maptest-frontend
|
|
||||||
dockerfile: web/Containerfile
|
|
||||||
context: web
|
|
||||||
# tags:
|
|
||||||
# - ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
|
||||||
# - ${DRONE_BRANCH}
|
|
||||||
username:
|
|
||||||
from_secret: REGISTRY_USER
|
|
||||||
password:
|
|
||||||
from_secret: REGISTRY_PASS
|
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# - master
|
|
||||||
# - staging
|
|
||||||
|
|
||||||
- name: deploy
|
|
||||||
image: argoproj/argocd:latest
|
|
||||||
commands:
|
|
||||||
- ${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
|
||||||
# - argocd login --grpc-web cd.stricity.com --username $USERNAME --password $PASSWORD
|
|
||||||
# - argocd app --grpc-web set ${DRONE_BRANCH}-game-rpc --kustomize-image registry.itzana.me/strafesnet/game-rpc:${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
|
||||||
environment:
|
|
||||||
USERNAME:
|
|
||||||
from_secret: ARGO_USER
|
|
||||||
PASSWORD:
|
|
||||||
from_secret: ARGO_PASS
|
|
||||||
depends_on:
|
|
||||||
- api
|
|
||||||
- frontend
|
|
||||||
- validator
|
|
||||||
# when:
|
|
||||||
# branch:
|
|
||||||
# - master
|
|
||||||
# - staging
|
|
||||||
---
|
|
||||||
kind: signature
|
|
||||||
hmac: d2845b87fe2734a09a5e0630488bf75e5724c284ac892f6278145e498cacfc77
|
|
||||||
|
|
||||||
...
|
|
27
.gitea/workflows/test.yaml
Normal file
27
.gitea/workflows/test.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
# - name: Login to container registry
|
||||||
|
# uses: docker/login-action@v3
|
||||||
|
# with:
|
||||||
|
# registry: registry.itzana.me
|
||||||
|
# username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
# password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: false
|
||||||
|
tags: registry.itzana.me/strafesnet/test:${{ gitea.run_id }}
|
Loading…
x
Reference in New Issue
Block a user