Add action to build scheduler

This commit is contained in:
Fergal Moran
2023-03-06 07:49:49 +00:00
parent 5e0bc14806
commit 2b6bbc646e
2 changed files with 30 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ jobs:
- run: yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
entryPoint: web/
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RADIO_OTHERWAY }}'
channelId: live

View File

@@ -0,0 +1,29 @@
name: Docker Image CI
on:
push:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./scheduler/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USER}}/radio-otherway-scheduler:latest