update deploy.yaml
This commit is contained in:
@@ -13,29 +13,29 @@ jobs:
|
|||||||
DANAK_SERVER: "https://captain.dev.danakcorp.com"
|
DANAK_SERVER: "https://captain.dev.danakcorp.com"
|
||||||
APP_TOKEN: 63b4ff99143c2310dd6110c51e56b131076af8efdb792c6d34851fb3f629cc37
|
APP_TOKEN: 63b4ff99143c2310dd6110c51e56b131076af8efdb792c6d34851fb3f629cc37
|
||||||
CAPROVER_APP_NAME: negareh-console
|
CAPROVER_APP_NAME: negareh-console
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # مطمئن شو تو Secrets تعریف شده
|
GITHUB_TOKEN: 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
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Test internet connectivity
|
||||||
|
run: |
|
||||||
|
echo "Testing connectivity..."
|
||||||
|
curl -I https://registry-1.docker.io/v2/
|
||||||
|
curl -I https://github.com/
|
||||||
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx (with GHCR mirror)
|
- name: Login to Container Registry
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
buildkitd-flags: --registry-mirror=https://ghcr.io
|
|
||||||
|
|
||||||
- name: Login to GHCR
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: zmihamid
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ env.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Preset Image Name
|
- name: Preset Image Name
|
||||||
run: |
|
run: echo "IMAGE_URL=$(echo ghcr.io/zmihamid/${{ github.event.repository.name }}:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
echo "IMAGE_URL=ghcr.io/${{ github.repository_owner }}/negareh-console:${{ github.sha }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Build and push Docker Image
|
- name: Build and push Docker Image (without setup-buildx)
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|||||||
Reference in New Issue
Block a user