mirror of
https://github.com/ethanrusz/scouter.git
synced 2025-01-18 00:27:45 -05:00
Update workflows
This commit is contained in:
parent
9987bd956b
commit
33a5988ef6
2 changed files with 31 additions and 7 deletions
|
@ -1,13 +1,11 @@
|
||||||
name: Build and Push to git.beans.team
|
name: Build and Push to git.beans.team
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-registry:
|
update-registry:
|
||||||
name: Update Registry Image
|
name: Update Registry Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -28,6 +26,4 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: git.beans.team/em/scouter:latest
|
||||||
git.beans.team/em/scouter:latest
|
|
||||||
git.beans.team/em/scouter:${{ github.sha }}
|
|
28
.github/workflows/build-release.yml
vendored
Normal file
28
.github/workflows/build-release.yml
vendored
Normal 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 }}
|
Loading…
Reference in a new issue