Last active
November 18, 2020 12:54
-
-
Save leozz37/c74df16656e2a23f4e3fe8c8ea4c51e7 to your computer and use it in GitHub Desktop.
GitHub Actions Docker build workflow
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: Docker | |
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build Image | |
run: docker build . -t example | |
- name: Run Unit Test | |
run: docker run example sh -c "go test" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment