Skip to content

Update .env.gui

Update .env.gui #17

name: Build and publish GUI
on:
push:
branches: [ v2.0.2 ]
paths:
- '.env.gui'
jobs:
PackageDeploy:
runs-on: ubuntu-latest
steps:
- name: Debugging Step
run: |
echo "Checking runner status..."
# Add more debugging commands as needed
- uses: actions/checkout@v2
- name: Docker Setup BuildX
uses: docker/setup-buildx-action@v2
- name: Load environment variables and set them
run: |
if [ -f .env.gui ]; then
export $(cat .env.gui | grep -v '^#' | xargs)
fi
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "BUILD=$BUILD" >> $GITHUB_ENV
echo "FIX=$FIX" >> $GITHUB_ENV
- name: Set repo
run: |
LOWER_CASE_GITHUB_REPOSITORY=$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')
echo "DOCKER_TAG_CUSTOM=ghcr.io/${LOWER_CASE_GITHUB_REPOSITORY}:$RELEASE-$VERSION.$BUILD.$FIX" >> $GITHUB_ENV
echo "$GITHUB_ENV"
- name: Docker Build
run: |
cd GUI
docker image build --tag $DOCKER_TAG_CUSTOM .
- name: Log in to GitHub container registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push Docker image to ghcr
run: docker push $DOCKER_TAG_CUSTOM