Change trigger to push events and add image test #2
Workflow file for this run
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 catadog | |
on: | |
# trigger catadog every time a push occurs on any branch | |
push: | |
branches: | |
- "**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: build image | |
run: docker buildx build -t catadog . | |
- name: test image by starting up a container | |
run: docker run --rm -it --name catadog catadog | |
- name: kill container | |
run: docker container kill catadog |