Update build.yml

master
HumanoidSandvichDispenser 2025-05-06 16:58:09 -07:00 committed by GitHub
parent ba059c9cbb
commit 92b7e45248
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 11 deletions

View File

@ -14,11 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Log in to GitHub Container Registry
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
@ -26,22 +24,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: set lower case owner name
- name: Set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
# Build Docker image for backend-flask
- name: Build Docker image for backend-flask
- name: Build Docker image for backend
run: |
cd backend-flask
docker build -t your-dockerhub-username/backend-flask:latest .
docker push ghcr.io/${{ OWNER_LC }}/availabili-tf-backend-flask:latest
docker build -t ${OWNER_LC}/availabili-tf-backend-flask:latest .
docker push ghcr.io/${OWNER_LC}/availabili-tf-backend-flask:latest
# Build Docker image for availabili.tf
- name: Build Docker image for availabili.tf
- name: Build Docker image for frontend
run: |
cd availabili.tf
docker build -t your-dockerhub-username/availabili-tf:latest .
docker push ghcr.io/${{ OWNER_LC }}/availabili-tf-frontend:latest
docker build -t ${OWNER_LC}/availabili-tf-frontend:latest .
docker push ghcr.io/${OWNER_LC}/availabili-tf-frontend:latest