feat(actions): Added dev build
This commit is contained in:
39
.gitea/workflows/main.yml
Normal file
39
.gitea/workflows/main.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Docker Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
github-server-url: 'https://git.haum.lnmch.fr'
|
||||
|
||||
- name: Log in to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.REGISTRY_URL }}/kops:${{ github.sha }}
|
||||
${{ secrets.REGISTRY_URL }}/kops:latest
|
||||
|
||||
- name: Logout from Docker Registry
|
||||
run: docker logout ${{ secrets.REGISTRY_URL }}
|
||||
Reference in New Issue
Block a user