Update .gitea/workflows/build.yaml
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m25s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m25s
This commit is contained in:
parent
17c85c09a6
commit
7d87e59106
@ -1,19 +1,25 @@
|
|||||||
name: Network Debugging
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
debug:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Teste Ingress (Port 80)
|
- name: 1. Code auschecken
|
||||||
run: curl -v http://10.43.161.169/v2/ || true
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Teste Port 3000
|
- name: 2. Login in die Gitea Registry
|
||||||
run: curl -v http://10.43.161.169:3000/v2/ || true
|
run: |
|
||||||
|
# Mit explizitem Port 80 zwingen wir Docker auf HTTP
|
||||||
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.simonaltschaeffl.de:80 -u simon_admin --password-stdin
|
||||||
|
|
||||||
- name: Teste internen K8s Service (Port 3000)
|
- name: 3. Docker Image bauen & pushen
|
||||||
run: curl -v http://gitea-http.gitea.svc.cluster.local:3000/v2/ || true
|
run: |
|
||||||
|
# Bauen und Pushen mit Port 80
|
||||||
|
docker build -t gitea.simonaltschaeffl.de:80/simon_admin/homepage:latest .
|
||||||
|
docker push gitea.simonaltschaeffl.de:80/simon_admin/homepage:latest
|
||||||
Loading…
Reference in New Issue
Block a user