Skip to content

fix repo name

fix repo name #4

Workflow file for this run

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