From a6d9d1141e3ff28e31805e17088ec6680d97e67d Mon Sep 17 00:00:00 2001 From: Divyam Date: Tue, 5 Nov 2024 14:45:03 +0530 Subject: [PATCH] trigger build --- .github/workflows/push.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/push.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 0000000..5333901 --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,37 @@ + +name: publish + +on: + push: + branches: + - docker-limit + +jobs: + +publish-hello-docker-image: + +runs-on: ubuntu-latest + +steps: + +- uses: actions/checkout@v2 + +- name: Login to GitHub Container Registry + +uses: docker/login-action@v1 + +with: + +registry: ghcr.io + +username: ${{ github.actor }} + +password: ${{ secrets.GITHUB_TOKEN }} + +- name: Build the hello-docker Docker image + +run: | + + docker pull opensearchproject/opensearch:2.11.1 + docker image tag opensearchproject/opensearch:2.11.1 ghcr.io/obmondo/opensearchproject:2.11.1 + docker push ghcr.io/obmondo/opensearchproject:2.11.1 \ No newline at end of file