From 0d4b140ca0fe01723b8699b6bea702a216dcf2b2 Mon Sep 17 00:00:00 2001 From: Paul Podgorsek Date: Wed, 14 Feb 2024 10:26:12 +0000 Subject: [PATCH] Issue #3 - Create a CI pipeline to build the project --- .github/workflows/docker-build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/docker-build.yml diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..7a664f8 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,29 @@ +name: Docker + +on: + push: + # Publish `main` as Docker `latest` image. + branches: + - main + + # Publish `v1.2.3` tags as releases. + tags: + - "*" + + # Run tests for any PRs. + pull_request: + +env: + # The image name + IMAGE_NAME: ansible-awx-cli:ci + +jobs: + # Build and run tests. + # See also https://docs.docker.com/docker-hub/builds/automated-testing/ + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build image + run: podman build . --tag $IMAGE_NAME --file Containerfile