Merge pull request #149 from TouK/main #138
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: Push customerservice | |
on: | |
push: | |
branches: | |
- main | |
- staging | |
- release/* | |
jobs: | |
docker-compose-test: | |
runs-on: ubuntu-latest | |
env: | |
VERSION: ${{ (github.base_ref == 'staging' || github.ref_name == 'staging') && 'staging-latest' || 'latest' }} | |
REGISTRY: ghcr.io | |
IMAGE_NAME: touk/nussknacker-quickstart/customerservice | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Log in to the Container registry | |
uses: docker/[email protected] | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/[email protected] | |
with: | |
context: ./common/customerservice | |
push: true | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}:${{ env.VERSION }} |