Merge pull request #510 from alan-turing-institute/bug-edit-note #271
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: frontend-docker | |
on: | |
push: | |
branches: [main, develop] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: "Build main" | |
if: ${{ github.ref == 'refs/heads/main' }} | |
working-directory: frontend | |
run: | | |
docker build -t turingassuranceplatform/eap_frontend:main -f Dockerfile . | |
docker push turingassuranceplatform/eap_frontend:main | |
- name: "Build develop" | |
if: ${{ github.ref == 'refs/heads/develop' }} | |
working-directory: next_frontend | |
run: | | |
docker build -t turingassuranceplatform/eap_frontend:develop -f Dockerfile . | |
docker push turingassuranceplatform/eap_frontend:develop |