Update workflows

This commit is contained in:
Em (Ethan) Ruszanowski 2024-02-26 16:46:22 -05:00
parent 9987bd956b
commit 33a5988ef6
Signed by: em
GPG key ID: C725D6E571252B96
2 changed files with 31 additions and 7 deletions

View file

@ -4,8 +4,6 @@ on:
push:
branches:
- main
tags:
- '*'
jobs:
update-registry:
@ -28,6 +26,4 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: |
git.beans.team/em/scouter:latest
git.beans.team/em/scouter:${{ github.sha }}
tags: git.beans.team/em/scouter:latest

28
.github/workflows/build-release.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Build and Push Releases
on:
release:
types: [ published ]
jobs:
update-registry:
name: Update Registry Image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to git.beans.team
uses: docker/login-action@v3
with:
registry: git.beans.team
username: em
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: git.beans.team/em/scouter:${{ github.event.release.tag_name }}