Update .gitea/workflows/build-container.yml
This commit is contained in:
@@ -5,21 +5,19 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
name: Build the docker container
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: mcr.microsoft.com/dotnet/sdk:10.0-noble-amd64
|
||||
steps:
|
||||
- name: "Git clone"
|
||||
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||
- name: "Git checkout"
|
||||
run: git checkout "${{ gitea.sha }}"
|
||||
- uses: aevea/action-kaniko@master
|
||||
name: Run Kaniko to build our api docker container.
|
||||
- name: "Oqtane Framework bauen"
|
||||
run: dotnet build -c Release ./oqtane.framework/Oqtane.slnx
|
||||
- name: "Oqtane Framework publish"
|
||||
run: dotnet publish -c Release ./oqtane.framework/Oqtane.slnx -o ./out
|
||||
- name: Upload Package
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
image: kocoded/oqtane.framework
|
||||
tag: ${{ git.workflow_sha }}
|
||||
tag_with_latest: github.ref == 'refs/heads/master'
|
||||
registry: git.kocoder.xyz
|
||||
username: ${{ secrets.CI_RUNNER_USER }}
|
||||
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||
build_file: Dockerfile
|
||||
target: deploy
|
||||
|
||||
include-hidden-files: true
|
||||
name: oqtane.framework-amd64
|
||||
path: ./out
|
||||
Reference in New Issue
Block a user