Fix up env files

This commit is contained in:
Fergal Moran
2020-09-05 07:13:43 +01:00
parent aa364c850c
commit f5a2acaeee
3 changed files with 34 additions and 63 deletions

View File

@@ -1,65 +1,34 @@
# name: build-client name: build-client
# on: on:
# push: push:
# branches: trunk branches: trunk
# jobs: jobs:
# buildx: buildx:
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - -
# name: Checkout name: Checkout
# uses: actions/checkout@v2 uses: actions/checkout@v2
# - -
# name: Prepare name: Set up Docker Buildx
# id: prepare id: buildx
# run: | uses: crazy-max/ghaction-docker-buildx@v3
# DOCKER_IMAGE=fergalmoran/bitchmin-web with:
# DOCKER_PLATFORMS=linux/amd64,linux/arm/v7 buildx-version: latest
# VERSION=latest qemu-version: latest
-
# if [[ $GITHUB_REF == refs/tags/* ]]; then name: Login to DockerHub
# VERSION=${GITHUB_REF#refs/tags/v} if: success() && github.event_name != 'pull_request'
# fi uses: docker/login-action@v1
# if [ "${{ github.event_name }}" = "schedule" ]; then with:
# VERSION=nightly username: ${{ secrets.DOCKER_USERNAME }}
# fi password: ${{ secrets.DOCKER_PASSWORD }}
-
# TAGS="--tag ${DOCKER_IMAGE}:${VERSION}" name: Run Buildx
# if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then run: |
# TAGS="$TAGS --tag ${DOCKER_IMAGE}:latest" docker buildx build \
# fi --push \
--platform linux/arm/v7 \
# echo ::set-output name=docker_image::${DOCKER_IMAGE} -t fergalmoran/bitchmin-web -f ./client/Dockerfile ./client
# echo ::set-output name=version::${VERSION}
# echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
# --build-arg VERSION=${VERSION} \
# --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
# --build-arg VCS_REF=${GITHUB_SHA::8} \
# ${TAGS} --file ./client/Dockerfile ./client
# -
# name: Set up Docker Buildx
# uses: crazy-max/ghaction-docker-buildx@v3
# -
# name: Docker Buildx (build)
# run: |
# docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }}
# -
# name: Login to DockerHub
# if: success() && github.event_name != 'pull_request'
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# -
# name: Docker Buildx (push)
# if: success() && github.event_name != 'pull_request'
# run: |
# docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
# -
# name: Inspect image
# if: always() && github.event_name != 'pull_request'
# run: |
# docker buildx imagetools inspect ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}

1
client/.env.development Normal file
View File

@@ -0,0 +1 @@
VUE_APP_API_SERVER=http://localhost:5000

1
client/.env.production Normal file
View File

@@ -0,0 +1 @@
VUE_APP_API_SERVER=https://admin-api.bitchmints.com