Merge pull request #1560 from BoostryJP/feature/#1559 #50
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: Build Container | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build_and_push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Get tag name | |
id: get_tag_name | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Build and Push (ibet-wallet) | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: Dockerfile | |
no-cache: true | |
push: true | |
tags: ghcr.io/boostryjp/ibet-wallet-api:${{ steps.get_tag_name.outputs.VERSION }} |