Skip to content

Commit

Permalink
Publish docker image from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsarm committed Apr 17, 2024
1 parent 2c86b71 commit 99fd0c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/}"

0 comments on commit 99fd0c9

Please sign in to comment.