From 99fd0c9a2dc77ea68b0eb0c3d146d416e1de778f Mon Sep 17 00:00:00 2001 From: Mariano Ruiz Date: Wed, 17 Apr 2024 17:22:42 -0300 Subject: [PATCH] Publish docker image from CI --- .github/workflows/docker-image.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9c48fc4..3977242 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -11,7 +11,14 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build the Docker image run: ./docker-build.sh "${GITHUB_REF#refs/heads/}" - name: Run tests run: docker run --rm -e PROCESS_TYPE=test --name django-coleman "mrsarm/django-coleman:${GITHUB_REF#refs/heads/}" + - name: Push Docker image + run: docker push "mrsarm/django-coleman:${GITHUB_REF#refs/heads/}"