mirror of https://github.com/01-edu/public.git
feat(workflow): ci/cd on `master`
This commit is contained in:
parent
98a49f05db
commit
0bb361a0ab
|
@ -1,45 +1,45 @@
|
|||
name: Docker Image CI
|
||||
name: 🐳 On Master - Build and Test Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['master']
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
branches: ["master"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-image:
|
||||
name: 🏗️ Build Image
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: 🐧 Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
- name: 📦 Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to docker.01-edu.org Registry
|
||||
uses: docker/login-action@v2.1.0
|
||||
- name: 🐳 Login to docker.01-edu.org Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: docker.01-edu.org
|
||||
username: ${{ secrets.USER_DOCKER_01EDU_ORG }}
|
||||
password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }}
|
||||
|
||||
- name: Build the Sh Docker image
|
||||
- name: 🏗️ Build the 💻 Sh Docker image
|
||||
if: always()
|
||||
run: |
|
||||
docker build sh/tests/ --file sh/tests/Dockerfile --tag ghcr.io/01-edu/test-sh:latest
|
||||
docker push ghcr.io/01-edu/test-sh:latest
|
||||
|
||||
- name: Build the JS Docker image
|
||||
- name: 🏗️ Build the 🚀 JS Docker image
|
||||
if: always()
|
||||
run: |
|
||||
docker build js/tests/ --file js/tests/Dockerfile --tag ghcr.io/01-edu/test-js:latest
|
||||
docker push ghcr.io/01-edu/test-js:latest
|
||||
|
||||
- name: Build the DOM Docker image
|
||||
- name: Build the 🧩 DOM Docker image
|
||||
if: always()
|
||||
run: |
|
||||
docker build . --file dom/Dockerfile --tag ghcr.io/01-edu/test-dom:latest
|
Loading…
Reference in New Issue