Fix: move workflow to .gitea/workflows/ (Gitea standard)
This commit is contained in:
61
.github/workflows/kub-deploy.yml
vendored
61
.github/workflows/kub-deploy.yml
vendored
@@ -1,61 +0,0 @@
|
|||||||
name: Build and Deploy to Kubernetes
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- kub-stage
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-push:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
options: --privileged
|
|
||||||
|
|
||||||
services:
|
|
||||||
dind:
|
|
||||||
image: docker:27-dind
|
|
||||||
options: --privileged
|
|
||||||
env:
|
|
||||||
DOCKER_TLS_CERTDIR: ""
|
|
||||||
HTTP_PROXY: "http://proxyuser:87zH26nbqT2@46.249.98.211:3128"
|
|
||||||
HTTPS_PROXY: "http://proxyuser:87zH26nbqT2@46.249.98.211:3128"
|
|
||||||
NO_PROXY: "localhost,127.0.0.1,gitea-svc,194.5.195.53"
|
|
||||||
|
|
||||||
env:
|
|
||||||
DOCKER_HOST: tcp://dind:2375
|
|
||||||
HTTP_PROXY: "http://proxyuser:87zH26nbqT2@46.249.98.211:3128"
|
|
||||||
HTTPS_PROXY: "http://proxyuser:87zH26nbqT2@46.249.98.211:3128"
|
|
||||||
NO_PROXY: "localhost,127.0.0.1,dind,gitea-svc,194.5.195.53"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Docker CLI
|
|
||||||
run: |
|
|
||||||
apt-get update -qq
|
|
||||||
apt-get install -y -qq docker.io
|
|
||||||
|
|
||||||
- name: Wait for Docker
|
|
||||||
run: |
|
|
||||||
for i in {1..30}; do
|
|
||||||
if docker info >/dev/null 2>&1; then
|
|
||||||
echo "Docker is ready"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "Waiting for Docker... ($i/30)"
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
- name: Build image
|
|
||||||
run: |
|
|
||||||
docker build -t 194.5.195.53:30080/admin/frontoffice-bff:latest .
|
|
||||||
|
|
||||||
- name: Login to registry
|
|
||||||
run: |
|
|
||||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
|
||||||
docker login 194.5.195.53:30080 -u admin --password-stdin
|
|
||||||
|
|
||||||
- name: Push image
|
|
||||||
run: docker push 194.5.195.53:30080/admin/frontoffice-bff:latest
|
|
||||||
Reference in New Issue
Block a user