update github 22
هذا الالتزام موجود في:
28
.github/workflows/main.yml
مباع
28
.github/workflows/main.yml
مباع
@@ -1,4 +1,28 @@
|
|||||||
deploy:
|
on:
|
||||||
|
push:
|
||||||
|
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:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v5.0.0
|
uses: actions/checkout@v5.0.0
|
||||||
@@ -9,4 +33,4 @@
|
|||||||
run: $HOME/ghaymah/bin/gy auth login --email "${{secrets.GHAYMAH_EMAIL}}" --password "${{secrets.GHAYMAH_PW}}"
|
run: $HOME/ghaymah/bin/gy auth login --email "${{secrets.GHAYMAH_EMAIL}}" --password "${{secrets.GHAYMAH_PW}}"
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: $HOME/ghaymah/bin/gy resource app launch
|
run: $HOME/ghaymah/bin/gy resource app launch
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم