update getpos #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push Multi-Platform Docker Image | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Encode apps.json to Base64 | |
id: encode_apps_json | |
run: | | |
export APPS_JSON_BASE64=$(base64 -w 0 apps.json) | |
echo "APPS_JSON_BASE64=$APPS_JSON_BASE64" >> $GITHUB_ENV | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
tags: geniusdynamics/custom-erpnext:v15.38.0-ns.6 | |
push: true | |
build-args: | | |
APPS_JSON_BASE64=${{ env.APPS_JSON_BASE64 }} | |
# No need to manually tag or push, it's handled in the build command above |