Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mhamdi authored Aug 28, 2024
1 parent 9efc949 commit df3ab05
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/jlai.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI/CD

on:

workflow_dispatch:

push:
Expand All @@ -14,29 +15,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: clone repo
uses: actions/checkout@v3
uses: actions/checkout@v4

build:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

authentication:
authenticate:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2


jlai-p1:
runs-on: ubuntu-latest
needs:
- clone
- authentication
- build
- authenticate
steps:
- name: Build and push Docker images
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v6
with:
context: ./Docker
context: "{{defaultContext}}:Docker"
file: Dockerfile-1
# platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
Expand All @@ -46,10 +53,11 @@ jobs:
runs-on: ubuntu-latest
needs:
- clone
- authentication
- build
- authenticate
steps:
- name: Build and push Docker images
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v6
with:
context: .
file: ./Docker/Dockerfile-2
Expand All @@ -61,10 +69,11 @@ jobs:
runs-on: ubuntu-latest
needs:
- clone
- authentication
- build
- authenticate
steps:
- name: Build and push Docker images
uses: docker/build-push-action@v3.1.1
uses: docker/build-push-action@v6
with:
context: .
file: ./Docker/Dockerfile-3
Expand Down

0 comments on commit df3ab05

Please sign in to comment.