Merge branch 'master' of github.com:HumanoidSandvichDispenser/availabili.tf

master
John Montagu, the 4th Earl of Sandvich 2025-05-06 23:03:10 -07:00
commit d88bba6602
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 40 additions and 0 deletions

40
.github/workflows/build.yml vendored 100644
View File

@ -0,0 +1,40 @@
name: Build Docker Images
on:
workflow_run:
workflows:
- Test Python backend
types:
- completed
workflow_dispatch:
jobs:
build:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Build Docker image for backend
run: |
cd backend-flask
docker build -t ghcr.io/${OWNER_LC}/availabili-tf-backend-flask:latest .
docker push ghcr.io/${OWNER_LC}/availabili-tf-backend-flask:latest