Skip to content

Commit

Permalink
cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
SelimMEZLINI committed Oct 3, 2024
1 parent fd341f2 commit 7012e4d
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/1_0_build_image_and_push_to_manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ jobs:
with:
go-version: '>=1.22.5'

- name: Configure git for private modules
run: |
git config --global url."https://github-ci-token:${{ secrets.CI_TOKEN }}@github.com/".insteadOf "https://github.com/"
git config --global url."https://gitlab-ci-token:${{ secrets.GITLAB_CI_TOKEN }}@gitlab.com/".insteadOf "https://gitlab.com/"
export GOPRIVATE=gitlab.com/target-energysolutions,tespkg.in
- name: Build Admin dashboard UI
run: npm --prefix=./ui ci && npm --prefix=./ui run build




# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v3
# with:
Expand Down Expand Up @@ -116,14 +123,14 @@ jobs:
# - name: Set up tools
# uses: tespkg/action@set_up_tools

# - name: Push to dev
# ## your main branch
# ## push the image name to env-dev/${{ github.repository }}
# if: ${{ github.ref == 'refs/heads/develop' }}
# uses: tespkg/action@deploy_to_dev
# with:
# ALIAS_GITHUB_REPOSITORY: ${{ github.repository }}
# TES_ENV: dev
- name: Push to dev
## your main branch
## push the image name to env-dev/${{ github.repository }}
if: ${{ github.ref == 'refs/heads/develop' }}
uses: tespkg/action@deploy_to_dev
with:
ALIAS_GITHUB_REPOSITORY: ${{ github.repository }}
TES_ENV: dev

- name: Push to mixed
## push the image name to env-mixed/${{ github.repository }}-${branch}
Expand Down

0 comments on commit 7012e4d

Please sign in to comment.