some ci fixes
This commit is contained in:
34
.gitea/workflows/build.yaml
Normal file
34
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
name: Build and docker image
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: k8s
|
||||
steps:
|
||||
|
||||
- name: Install prerequisites
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xz-utils unzip
|
||||
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- name: Docker login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ secrets.docker_username }}
|
||||
password: ${{ secrets.docker_password }}
|
||||
|
||||
|
||||
- name: Build
|
||||
uses: https://github.com/docker/build-push-action@v2
|
||||
with:
|
||||
context: frontend
|
||||
tags: ${{ secrets.docker_registry }}/frontend:latest
|
||||
push: true
|
Reference in New Issue
Block a user