test(LanguageParserServiceTest): use contains instead equals for arra… #8
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 Api Docker Image | |
on: | |
push: | |
branches-ignore: | |
- master | |
paths: | |
- Submarine.Api/** | |
- Submarine.Core/** | |
- .github/workflows/build-other-branches.yml | |
jobs: | |
docker: | |
name: Build Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v3 | |
- name: Get Branch Name | |
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get short hash of commit | |
id: sha_short | |
shell: bash | |
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Submarine.Api/Dockerfile | |
push: true | |
tags: | | |
ghcr.io/simplymedia/submarine-api:${{ steps.sha_short.outputs.sha_short }} | |
ghcr.io/simplymedia/submarine-api:${{ env.BRANCH }} | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |