Skip to content

fix: fix and test folder name #8

fix: fix and test folder name

fix: fix and test folder name #8

Workflow file for this run

name: build-tag-push
on:
schedule:
# At 00:00 on Sunday.
- cron: '0 0 * * 0'
push:
branches:
- master
env:
IMAGE_REPO: pipech
IMAGE_NAME: erpnext-docker-debian
jobs:
build-tag-push:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: [3.6]
app_branch: [version-15]
steps:
- name: Formatting and set version variable
run: python scripts/tag_image.py
- name: Generate action image tag
run: echo "IMAGE_ACTION_TAG=${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ github.actor_id }}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: ${{ env.IMAGE_ACTION_TAG }}
build-args: |
PYTHON_VERSION=${{ matrix.python_version }}
APP_BRANCH=${{ matrix.app_branch }}
- name: Getting app version from image
run: |
docker run --rm ${{ env.IMAGE_ACTION_TAG }} bench version > version.txt
- name: Formatting and set version variable
run: python scripts/tag_image.py
- name: Tag and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.IMAGE_VERSION_TAG }}