Rename yml files to yaml, add the build latest workflow.

This commit is contained in:
2025-03-17 16:50:03 -04:00
parent 17e3ea3bec
commit 835ecb1d94
3 changed files with 35 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
name: build_develop
on:
push:
branches:
- "*"
- "!main"
paths-ignore:
- "README.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Docker
uses: https://github.com/papodaca/install-docker-action@v1
- name: Log into container registry
uses: docker/login-action@v2
with:
registry: gitea.cheezers.org
username: imcompiling
password: ${{ secrets.PASSWORD }}
- name: set env
run: echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
- name: Build Docker Image
run: docker build -t gitea.cheezers.org/imcompiling/off-cooldown-bot:${{env.GIT_BRANCH}} .
- name: Push Docker Image
run: docker push gitea.cheezers.org/imcompiling/off-cooldown-bot:${{env.GIT_BRANCH}}