Initial commit
This commit is contained in:
49
.gitea/workflows/build-develop.yaml
Normal file
49
.gitea/workflows/build-develop.yaml
Normal file
@ -0,0 +1,49 @@
|
||||
name: Build Develop Image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'develop'
|
||||
|
||||
env:
|
||||
FULL_TAG: git.mrmeeb.stream/mrmeeb/gitea-act-runner:develop
|
||||
DISCORD_COLOUR: ${{ job.status == success && '#48f442' || '#f44336' }}
|
||||
DISCORD_STATE: ${{ job.status == success && 'succeeded' || 'failed' }}
|
||||
|
||||
jobs:
|
||||
"Build Image":
|
||||
runs-on: ubuntu-docker-latest
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.mrmeeb.stream
|
||||
username: ${{ secrets.GT_USERNAME }}
|
||||
password: ${{ secrets.GT_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ env.FULL_TAG }}
|
||||
provenance: false
|
||||
"Notify":
|
||||
runs-on: ubuntu-docker-latest
|
||||
if: ${{ always() }}
|
||||
needs: ["Build Image"]
|
||||
steps:
|
||||
- name: Notify of outcome
|
||||
uses: appleboy/discord-action@master
|
||||
if: always()
|
||||
env:
|
||||
DISCORD_COLOR: "${{ job.status == 'success' && '#48f442' || '#f44336' }}"
|
||||
DISCORD_MESSAGE: "${{ gitea.job }} on ${{ gitea.repository }} has ${{ job.status == 'success' && 'succeeded' || 'failed.' }}"
|
||||
with:
|
||||
webhook_id: ${{ secrets.WEBHOOK_ID }}
|
||||
webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
|
||||
color: ${{ env.DISCORD_COLOR }}
|
||||
username: "Gitea Bot"
|
||||
message: ${{ env.DISCORD_MESSAGE }}
|
Reference in New Issue
Block a user