diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..8b35440 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,34 @@ +name: Build and push image +on: + workflow_dispatch: + inputs: + version: + description: "Semantic version to be built" + required: true + type: string +jobs: + push_to_registries: + name: Push Docker image to GHCR + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Login to Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ github.token }} + + - name: Build and push Docker images + uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + with: + context: . + push: true + tags: ghcr.io/coveooss/acm_checker:${{ github.event.inputs.version }} + labels: ${{ github.event.inputs.version }} \ No newline at end of file