18
.github/workflows/main.yml
مباع
18
.github/workflows/main.yml
مباع
@@ -3,26 +3,8 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build_and_push_image:
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v5.0.0
|
||||
|
||||
- name: login to dockerhub
|
||||
uses: docker/login-action@v3.6.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ahmedgamalyousef/firstcicd:latest
|
||||
|
||||
deploy:
|
||||
needs: build_and_push_image
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v5.0.0
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم