13 11 bug error with no event #14
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: Docker Image CI | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- closed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build Frontend Image | |
run: docker build -t deretz/endurace_reporting:frontend.${{ github.sha }} -f front/Dockerfile front/ | |
- name: Build Backend Image | |
run: docker build -t deretz/endurace_reporting:backend.${{ github.sha }} -f back/Dockerfile back/ | |
- name: Push Frontend Image | |
run: | | |
docker tag deretz/endurace_reporting:frontend.${{ github.sha }} deretz/endurace_reporting:frontend.latest | |
docker push deretz/endurace_reporting:frontend.${{ github.sha }} | |
docker push deretz/endurace_reporting:frontend.latest | |
- name: Push Backend Image | |
run: | | |
docker tag deretz/endurace_reporting:backend.${{ github.sha }} deretz/endurace_reporting:backend.latest | |
docker push deretz/endurace_reporting:backend.${{ github.sha }} | |
docker push deretz/endurace_reporting:backend.latest |