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