Uppdating CICD Workflow
هذا الالتزام موجود في:
39
.github/workflows/cicd.yml
مباع
39
.github/workflows/cicd.yml
مباع
@@ -1,17 +1,36 @@
|
|||||||
name: my first workflow on GitPasha
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
my-first-job:
|
build_and_push_image:
|
||||||
steps:
|
steps:
|
||||||
- name: say hello
|
- name: checkout code
|
||||||
run: echo "Hello World"
|
uses: actions/checkout@v5.0.0
|
||||||
|
|
||||||
- name: create file
|
- name: login to dockerhub
|
||||||
run: touch jemy.log
|
uses: docker/login-action@v3.6.0
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: list files
|
- name: Build and push
|
||||||
run: ls -la
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: firstcicd:latest
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build_and_push_image
|
||||||
|
steps:
|
||||||
|
- name: checkout code
|
||||||
|
uses: actions/checkout@v5.0.0
|
||||||
|
- name: install ghaymah cli
|
||||||
|
run: curl -sSl https://cli.ghaymah.systems/install.sh | bash
|
||||||
|
|
||||||
|
- name: login to ghaymah
|
||||||
|
run: $HOME/ghaymah/bin/gy auth login --email "${{secrets.GHAYMAH_EMAIL}}" --password "${{secrets.GHAYMAH_PW}}"
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
run: $HOME/ghaymah/bin/gy resource app launch
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم