add minimal actions
This commit is contained in:
parent
af3b68521f
commit
f95ba7e394
2 changed files with 24 additions and 20 deletions
24
.gitea/workflows/build.yaml
Normal file
24
.gitea/workflows/build.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Build and Push container
|
||||
run-name: Build and Push container
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_besu:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to gitea registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.kvant.cloud
|
||||
username: ${{ vars.PHOENIX_PACKAGE_WRITER_USERNAME }}
|
||||
password: ${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}
|
|
@ -1,20 +0,0 @@
|
|||
name: Docker Image Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_and_push_docker_image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
docker build --build-arg VERSION=${GITHUB_REF_NAME} -t git.kvant.cloud/${GITHUB_REPOSITORY}:${GITHUB_SHA} .
|
Loading…
Add table
Add a link
Reference in a new issue