ci: push image to Forgejo registry, pull from K3s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 8s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 8s
This commit is contained in:
parent
250da90bd3
commit
18c27ba854
1 changed files with 8 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ on:
|
|||
- 'hotfix/**'
|
||||
|
||||
env:
|
||||
REGISTRY: git.avisenna-engineering.de
|
||||
IMAGE: git.avisenna-engineering.de/keyvan/avisenna-landing-page
|
||||
VERSION: latest
|
||||
NAMESPACE: ${{ github.ref == 'refs/heads/main' && 'prod' || 'web' }}
|
||||
|
|
@ -29,8 +30,13 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t $IMAGE:$VERSION .
|
||||
- name: Login to Forgejo registry
|
||||
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login $REGISTRY -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
docker build -t $IMAGE:$VERSION .
|
||||
docker push $IMAGE:$VERSION
|
||||
|
||||
- name: Deploy to Kubernetes
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue