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