Merge pull request #256 from VAuthenticator/main #258
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build VAuthenticator Local Tenant | |
on: | |
push: { } | |
workflow_dispatch: { } | |
jobs: | |
build-local-tenant-installer: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: docker push | |
run: | | |
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} | |
if [[ ${GITHUB_REF##*/} == 'main' ]] | |
then | |
DOCKER_TAG="latest" | |
else | |
DOCKER_TAG="${GITHUB_REF##*/}" | |
fi | |
echo "$DOCKER_TAG" | |
docker build -t mrflick72/vauthenticator-local-tenant-installer:$DOCKER_TAG -f tenant-installer.Dockerfile . | |
docker push mrflick72/vauthenticator-local-tenant-installer:$DOCKER_TAG |