Merge pull request #17 from mesosphere/multitenancy #3
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish-image: | |
name: Publish Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup asdf | |
uses: asdf-vm/actions/setup@v1 | |
- name: Set release version | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Granting private modules access | |
run: | | |
git config --global url."https://${{ secrets.CI_TOKEN }}:[email protected]/".insteadOf "https://github.com/" | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build container image | |
run: TAG=${{ env.RELEASE_VERSION }} make container | |
env: | |
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }} | |
- name: Push container image | |
run: TAG=${{ env.RELEASE_VERSION }} make push-image |