Merge pull request #234 from covalenthq/develop #19
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: tag-release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
tagged-release: | |
name: Tagged Release | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Login to GCR | |
uses: docker/login-action@v2 | |
with: | |
registry: gcr.io | |
username: _json_key | |
password: ${{ secrets.GCR_JSON_KEY }} | |
- uses: actions/checkout@v2 | |
- name: Set env | |
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- name: Build & Publish the Docker image | |
run: | | |
docker buildx create --name builder --use --platform=linux/amd64,linux/arm64 && docker buildx build --platform=linux/amd64,linux/arm64 . -t gcr.io/covalent-project/bsp-agent:stable -t gcr.io/covalent-project/bsp-agent:"${{ env.TAG }}" --push | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
draft: false | |
prerelease: false | |
files: | | |
*.zip | |
*.tar.gz | |