Skip to content

Instantly share code, notes, and snippets.

@leozz37
Last active November 18, 2020 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leozz37/c74df16656e2a23f4e3fe8c8ea4c51e7 to your computer and use it in GitHub Desktop.
Save leozz37/c74df16656e2a23f4e3fe8c8ea4c51e7 to your computer and use it in GitHub Desktop.
GitHub Actions Docker build workflow
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