Skip to content

Merge pull request #17 from mesosphere/multitenancy #3

Merge pull request #17 from mesosphere/multitenancy

Merge pull request #17 from mesosphere/multitenancy #3

Workflow file for this run

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