.github/workflows/ui_base.yaml
name: UI base image CI
on:
push:
branches:
- 'develop'
paths:
- 'ui/nginx/**'
- 'ui/docker-entrypoint.sh'
- 'ui/base.Dockerfile'
- 'ui/base.Dockerfile.dockerignore'
- '.github/workflows/ui_base.yaml'
jobs:
build_base_docker_image:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build base docker image
env:
BASE_IMAGE: nginx:1.18-alpine
TAG_VERSION: base-1.18-alpine
run: |
cd ui
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
DOCKER_BUILDKIT=1 docker build --build-arg BASE_IMAGE=$BASE_IMAGE -t erxes/erxes:$TAG_VERSION -f base.Dockerfile .
docker push erxes/erxes:$TAG_VERSION