Skip to content

Commit

Permalink
Improve workflows to support beta docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
salbahra committed Nov 26, 2024
1 parent 4b37724 commit 9471bab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
docker:
Expand Down Expand Up @@ -97,7 +100,7 @@ jobs:

- name: Set Tag
run: |
if [ "${GITHUB_REF##*/}" == "master" ]; then
if [ "${{ github.event_name }}" == "push" ] && [ "${GITHUB_REF##*/}" == "master" ]; then
echo "TAG=latest" >> $GITHUB_ENV
else
echo "TAG=beta" >> $GITHUB_ENV
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/firebase-hosting-pull-request.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build_and_deploy:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -45,9 +48,10 @@ jobs:
- name: Build AutoML UI
run: npm --prefix ui run build

- uses: FirebaseExtended/action-hosting-deploy@v0
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_MILO_ML }}
channelId: live
projectId: milo-ml
channelId: ${{ github.event_name == 'push' && 'live' || '' }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Unit Tests
name: Unit Tests

on:
push:
Expand Down

0 comments on commit 9471bab

Please sign in to comment.