mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-24 00:35:10 +00:00
Update build_system_image.yml
This commit is contained in:
parent
250b249caa
commit
5bd79e5b58
1 changed files with 17 additions and 12 deletions
29
.github/workflows/build_system_image.yml
vendored
29
.github/workflows/build_system_image.yml
vendored
|
|
@ -1,10 +1,13 @@
|
|||
name: build system Image base on json config provided
|
||||
run-name: ${{ github.actor }} update 🚀
|
||||
on: [push, pull_request]
|
||||
on: #[push, pull_request]
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
job-image-build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on:
|
||||
- self-hosted
|
||||
# env: working-directory:./
|
||||
|
||||
steps:
|
||||
|
|
@ -17,19 +20,21 @@ jobs:
|
|||
with:
|
||||
java-version: '17' # Change to the desired Java version
|
||||
distribution: 'adopt'
|
||||
|
||||
|
||||
- name: Execute custom commands
|
||||
run: |
|
||||
echo "Build Jar"./mvnw install# working-directory:./
|
||||
- name: login to harb
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: harbor.fintechsys.net
|
||||
username: ${{ secrets.PHEE_HARBOR_USERNAME }}
|
||||
password: ${{ secrets.PHEE_HARBOR_PASSWORD }}
|
||||
|
||||
- name: BuildAndPushImageOnHarbor
|
||||
uses: actions/checkout@v3
|
||||
- name: Execute custom commands
|
||||
run: |
|
||||
docker build ./ -t harbor.fintechsys.net/yemen-express/sync-remit-dispatcher:latest
|
||||
docker push harbor.fintechsys.net/yemen-express/sync-remit-dispatcher:latest
|
||||
git clone --recursive "https://github.com/fintechsys/remittance_image_builder.git"
|
||||
cd remittance_image_builder
|
||||
|
||||
./build_network_company_image.sh --tag="remittance_network_agent:${{ secrets.BRANCH_NAME_JS }}" --token="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" --frappe-path="https://github.com/fintechsys/frappe.git" --frappe-branch=version-14
|
||||
|
||||
docker image ls
|
||||
docker tag remittance_network_agent harbor.fintechsys.net/frappe-systems/remittance_network_agent:${{ secrets.BRANCH_NAME_JS }}
|
||||
docker push harbor.fintechsys.net/frappe-systems/remittance_network_agent:${{ secrets.BRANCH_NAME_JS }}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue