Add CI/CD
This commit is contained in:
parent
b385d1e7ba
commit
5147a8ccf8
46
.gitea/workflows/release.yaml
Normal file
46
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 0 1 * *
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release-default:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: gitea/runner-images:ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker BuildX
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
buildkitd-flags: --debug
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_REGISTRY_USER }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Download Hyperbola tarballs
|
||||
run: |
|
||||
wget https://archive.fridu.us/hyperbola/iso/2024.05.06/hyperbola-bootstrap-x86_64.tar.gz
|
||||
wget https://archive.fridu.us/hyperbola/iso/2024.05.06/hyperbola-bootstrap-i686.tar.gz
|
||||
|
||||
- name: Get Meta
|
||||
id: meta
|
||||
run: |
|
||||
echo IMAGE_VERSION=$(date -u +'%d.%m.%y') | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Hyperbola images
|
||||
id: build
|
||||
run: |
|
||||
bash make-hyperbola.sh
|
Loading…
x
Reference in New Issue
Block a user