Merge pull request #9 from ethanrusz/actions

Update workflows
This commit is contained in:
Em (Ethan) Ruszanowski 2024-02-26 16:54:56 -05:00 committed by GitHub
commit 15a9be25cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 9 deletions

View file

@ -1,13 +1,11 @@
name: Build and Push to git.beans.team
on:
on:
push:
branches:
- main
tags:
- '*'
jobs:
jobs:
update-registry:
name: Update Registry Image
runs-on: ubuntu-latest
@ -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 }}

4
app.py
View file

@ -141,7 +141,7 @@ def main():
st.write(find_spawnlist(run.outside_power, outside_creatures))
else:
st.error(
f"Power level exceedes maximum possible for {run.moon.name}."
f"Power level exceeds maximum possible for {run.moon.name}."
)
with right_column:
@ -180,7 +180,7 @@ def main():
st.write(find_spawnlist(run.inside_power, inside_creatures))
else:
st.error(
f"Power level exceedes maximum possible for {run.moon.name}."
f"Power level exceeds maximum possible for {run.moon.name}."
)