Skip to content

Commit

Permalink
Change trigger to push events and add image test
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahchen6 committed Sep 13, 2024
1 parent 65a300c commit 2531d85
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
name: build catadog

on:
# for testing
pull_request:
# trigger catadog every time a push occurs on any branch
push:
branches:
- "**"
# trigger catadog every time a push occurs on any branch
# push:
# branches:
# - "**"

# map of variables that are available to all jobs in the workflow
# env:
# REGISTRY: ghcr.io
# REPO: datadog/catadog

jobs:
build:
Expand All @@ -23,3 +14,7 @@ jobs:
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

0 comments on commit 2531d85

Please sign in to comment.