Merge pull request #246 from VAuthenticator/221-key-repository-on-pos… #232
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##*/} == 'master' ]] | |
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 |