mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-30 06:24:27 +02:00
feat: add new workflows
(cherry picked from commit d9b974de4697fbb20a151fe96b24e98fda269669)
This commit is contained in:
parent
846b7bf104
commit
3ab50bb005
65
.github/workflows/build_features.yml
vendored
Normal file
65
.github/workflows/build_features.yml
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
name: Test build a feature branch
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: 'The branch to test build'
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
IMAGE_TAG: ${{ github.sha }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Dockerfile
|
||||||
|
id: checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.branch }}
|
||||||
|
|
||||||
|
- name: Setup QEMU
|
||||||
|
id: qemu
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
with:
|
||||||
|
image: tonistiigi/binfmt:latest
|
||||||
|
platforms: all
|
||||||
|
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v3
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
flavor: |
|
||||||
|
latest=${{ startsWith(github.ref, 'refs/heads/main') }}
|
||||||
|
suffix=-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
id: build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64/v8
|
||||||
|
push: false
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
- name: Upload image
|
||||||
|
uses: ishworkh/docker-image-artifact-upload@v1
|
||||||
|
with:
|
||||||
|
image: ${{ steps.meta.outputs.tags }}
|
||||||
|
retention_days: "1"
|
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: Main build
|
name: Build and Publish Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '24 9 * * 6'
|
- cron: '24 9 * * 6'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
1
hypercorn.toml
Normal file
1
hypercorn.toml
Normal file
@ -0,0 +1 @@
|
|||||||
|
bind
|
Loading…
x
Reference in New Issue
Block a user