Merge pull request #142 from covalenthq/develop #21
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 Artifact Registry/GCR | |
uses: docker/login-action@v2 | |
with: | |
registry: us-docker.pkg.dev | |
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 us-docker.pkg.dev/covalent-project/network/rudder:stable -t us-docker.pkg.dev/covalent-project/network/rudder:"${{ env.TAG }}" --push | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
draft: false | |
prerelease: false | |
files: | | |
*.zip | |
*.tar.gz | |