Skip to content

Commit

Permalink
push images to private registry on merge
Browse files Browse the repository at this point in the history
Signed-off-by: barakda <[email protected]>
  • Loading branch information
barakda committed Jun 4, 2024
1 parent 7867539 commit 44bc265
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,37 @@ jobs:
make down
make clean
push-to-registry:
push-images-to-private-registry:
if: github.event_name == 'push' && github.ref == 'refs/heads/devel'
needs: [pytest, demo, discovery, ha]
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download container images
uses: actions/download-artifact@v4
with:
name: container_images

- name: Load container images
run: |
docker load < nvmeof.tar
docker load < nvmeof-cli.tar
- name: Login to quay.io
uses: docker/login-action@v2
with:
registry: ${{ vars.CONTAINER_REGISTRY }}
username: '${{ vars.CONTAINER_PRIVATE_REGISTRY_USERNAME }}'
password: '${{ secrets.CONTAINER_PRIVATE_REGISTRY_PASSWORD }}'

- name: Publish nvmeof containers when release/tag is created
run: |
make push
push-images-to-ceph-registry:
if: github.event_name == 'release'
needs: [pytest, demo, discovery, ha]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 44bc265

Please sign in to comment.