This file contains hidden or 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 and Test eMASSer CLI Docker Image on every Pull Request or Push to Main | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
TEST_TAG: emasser:testTag | |
jobs: | |
docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Checkout the eMASSer Repository | |
uses: actions/checkout@v4 | |
- name: Build Docker Image | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: false | |
load: true # makes it available for the local docker executable | |
# doesn't need multiplatform support since we're only running it in this workflow | |
tags: ${{ env.TEST_TAG }} | |
- name: Test | |
run: | | |
docker run --rm ${{ env.TEST_TAG }} |