2024-05-31 13:59:14 +00:00
name : Docker Develop Build
2021-10-19 04:19:33 +00:00
on :
push :
branches : [ develop ]
jobs :
2024-05-31 13:59:14 +00:00
docker-build-develop :
2024-05-14 14:17:04 +00:00
runs-on : ubuntu-latest
2021-10-19 04:19:33 +00:00
steps :
- name : Check Out Repo
2023-09-11 20:54:55 +00:00
uses : actions/checkout@v4
2021-10-19 04:19:33 +00:00
with :
ref : develop
- name : Login to Docker Hub
2023-09-14 14:09:13 +00:00
uses : docker/login-action@v3
2021-10-19 04:19:33 +00:00
with :
username : ${{ secrets.DOCKER_HUB_USERNAME }}
password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2021-12-08 06:55:46 +00:00
- name : Set up QEMU
uses : docker/setup-qemu-action@master
with :
platforms : all
2023-11-30 16:57:09 +00:00
- name : Set up Docker Buildx
id : buildx
uses : docker/setup-buildx-action@v3
2024-04-08 22:50:24 +00:00
- name : Build and Push
2021-10-19 04:19:33 +00:00
id : docker_build
2024-06-19 13:50:23 +00:00
uses : docker/build-push-action@v6
2021-10-19 04:19:33 +00:00
with :
context : ./
2024-05-14 14:17:04 +00:00
file : ./Dockerfile
2023-01-19 15:48:49 +00:00
build-args : |
2023-01-19 19:00:31 +00:00
"BRANCH_NAME=develop"
2022-06-23 19:12:28 +00:00
platforms : linux/amd64,linux/arm64,linux/arm/v7
2021-10-19 04:19:33 +00:00
push : true
2024-05-14 14:17:04 +00:00
tags : kometateam/kometa:develop
2023-11-21 06:07:32 +00:00
cache-from : type=gha
cache-to : type=gha,mode=max
2022-03-08 20:03:53 +00:00
2022-03-08 21:35:10 +00:00
- name : Discord Success Notification
2024-04-22 14:20:12 +00:00
uses : Kometa-Team/discord-notifications@master
2022-03-08 21:35:10 +00:00
if : success()
with :
2024-04-22 14:57:22 +00:00
webhook_id_token : ${{ secrets.BUILD_WEBHOOK }}
2024-05-14 20:53:26 +00:00
title : "${{ vars.REPO_NAME }} develop: ${{ vars.TEXT_SUCCESS }}"
2024-04-29 14:49:46 +00:00
url : https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/actions/runs/${{ github.run_id }}
2024-05-14 20:53:26 +00:00
color : ${{ vars.COLOR_SUCCESS }}
username : ${{ vars.BOT_NAME }}
avatar_url : ${{ vars.BOT_IMAGE }}
author : ${{ vars.DOCKER_NAME }}
author_icon_url : ${{ vars.DOCKER_IMAGE }}
2022-03-08 21:35:10 +00:00
- name : Discord Failure Notification
2024-04-22 14:20:12 +00:00
uses : Kometa-Team/discord-notifications@master
2022-03-08 21:35:10 +00:00
if : failure()
2022-03-08 20:03:53 +00:00
with :
2024-04-22 14:57:22 +00:00
webhook_id_token : ${{ secrets.BUILD_WEBHOOK }}
2024-05-14 20:53:26 +00:00
message : ${{ vars.BUILD_FAILURE_ROLE }}
title : "${{ vars.REPO_NAME }} develop: ${{ vars.TEXT_FAILURE }}"
2024-04-29 14:49:46 +00:00
url : https://github.com/Kometa-Team/${{ vars.REPO_NAME }}/actions/runs/${{ github.run_id }}
2024-05-14 20:53:26 +00:00
color : ${{ vars.COLOR_FAILURE }}
username : ${{ vars.BOT_NAME }}
avatar_url : ${{ vars.BOT_IMAGE }}
author : ${{ vars.DOCKER_NAME }}
author_icon_url : ${{ vars.DOCKER_IMAGE }}
2024-04-23 15:33:27 +00:00
commit-notification :
runs-on : ubuntu-latest
2024-05-31 13:59:14 +00:00
needs : [ docker-build-develop ]
2024-05-30 20:59:29 +00:00
if : ${{ success() }}
2024-04-23 15:33:27 +00:00
steps :
- name : Send Discord Commit Notification
uses : Kometa-Team/discord-notifications@master
with :
webhook_id_token : ${{ secrets.DEVELOP_WEBHOOK }}
2024-05-14 20:53:26 +00:00
title : ${{ vars.TEXT_COMMITS }}
2024-04-23 15:33:27 +00:00
message : "<@&954835263731949623> - An update to Kometa has been published and is available to users of the **develop** branch.\n\nWe **strongly** recommend users who previously switched to the `nightly` branch to resolve any previous issues to now switch back to the `develop` branch now."
commits : "true"
2024-05-14 20:53:26 +00:00
color : ${{ vars.COLOR_SUCCESS }}
username : ${{ vars.BOT_NAME }}
avatar_url : ${{ vars.BOT_IMAGE }}
2024-04-29 14:49:46 +00:00
author : ${{ vars.REPO_NAME }} Develop Release
2024-05-14 20:53:26 +00:00
author_icon_url : ${{ vars.RELEASE_IMAGE }}