Skip to content

Tried optimizing loop calculations and added debugging #215

Tried optimizing loop calculations and added debugging

Tried optimizing loop calculations and added debugging #215

name: dev docker build & push
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract Git info
run: |
echo "COMMITID=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "BRANCH=$(git symbolic-ref --short HEAD)" >> $GITHUB_ENV
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: registry.zec.one
username: ${{ secrets.REGISTRY_ZEC_ONE_USERNAME }}
password: ${{ secrets.REGISTRY_ZEC_ONE_PASSWORD }}
- name: Set up Docker Buildx
run: |
docker buildx version
docker buildx create --use
- name: Dockerize and Push Image
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/arm64,linux/amd64
tags: registry.zec.one/charge-controller-dev
build-args: |
COMMITID=${{ env.GIT_COMMITID }}
BRANCH=${{ env.GIT_BRANCH }}