mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🔧 Give names to the steps of the Actions workflow
This commit is contained in:
parent
15c9e822de
commit
d1977fa6c5
1 changed files with 27 additions and 14 deletions
41
.github/workflows/build-docker-images.yml
vendored
41
.github/workflows/build-docker-images.yml
vendored
|
@ -1,28 +1,41 @@
|
||||||
name: Build docker images
|
name: Build docker images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-backend:
|
build-backend:
|
||||||
|
name: "Build backend image"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: "Checkout repository"
|
||||||
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
uses: actions/checkout@v2
|
||||||
- run: docker build ./backend --tag ghcr.io/steffo99/sophon-backend:latest
|
- name: "Login to GitHub Containers"
|
||||||
- run: docker push ghcr.io/steffo99/sophon-backend:latest
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
||||||
|
- name: "Build the docker container `ghcr.io/steffo99/sophon-backend:latest`"
|
||||||
|
run: docker build ./backend --tag ghcr.io/steffo99/sophon-backend:latest
|
||||||
|
- name: "Upload the container to GitHub Containers"
|
||||||
|
run: docker push ghcr.io/steffo99/sophon-backend:latest
|
||||||
build-frontend:
|
build-frontend:
|
||||||
|
name: "Build frontend image"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: "Checkout repository"
|
||||||
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
uses: actions/checkout@v2
|
||||||
- run: docker build ./frontend --tag ghcr.io/steffo99/sophon-frontend:latest
|
- name: "Login to GitHub Containers"
|
||||||
- run: docker push ghcr.io/steffo99/sophon-frontend:latest
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
||||||
|
- name: "Build the docker container `ghcr.io/steffo99/sophon-frontend:latest`"
|
||||||
|
run: docker build ./frontend --tag ghcr.io/steffo99/sophon-frontend:latest
|
||||||
|
- name: "Upload the container to GitHub Containers"
|
||||||
|
run: docker push ghcr.io/steffo99/sophon-frontend:latest
|
||||||
build-proxy:
|
build-proxy:
|
||||||
|
name: "Build proxy image"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: "Checkout repository"
|
||||||
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
uses: actions/checkout@v2
|
||||||
- run: docker build ./proxy --tag ghcr.io/steffo99/sophon-proxy:latest
|
- name: "Login to GitHub Containers"
|
||||||
- run: docker push ghcr.io/steffo99/sophon-proxy:latest
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u Steffo99 --password-stdin
|
||||||
|
- name: "Build the docker container `ghcr.io/steffo99/sophon-proxy:latest`"
|
||||||
|
run: docker build ./proxy --tag ghcr.io/steffo99/sophon-proxy:latest
|
||||||
|
- name: "Upload the container to GitHub Containers"
|
||||||
|
run: docker push ghcr.io/steffo99/sophon-proxy:latest
|
||||||
|
|
Loading…
Reference in a new issue