Skip to content

Commit

Permalink
Add build and validation job to publish-website-monitor-docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sofia-assis committed Mar 24, 2024
1 parent 6ee6726 commit 2c95ddc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish-website-monitor-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,25 @@ on:
branches: [ "main" ]

jobs:
build-and-validate:
name: Build and Validate
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Build Docker Image
run: docker build -t my-image:latest .

- name: Validate
run: |
wget https://github.com/opencontainers/image-tools/releases/download/v1.0.0/oci-image-tool && \
chmod +x oci-image-tool && \
./oci-image-tool validate --tarball my-image.tar.gz
push_to_registry:
name: Push Docker Image to Docker Hub
needs: build-and-validate
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
Expand Down

0 comments on commit 2c95ddc

Please sign in to comment.