diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 75aa4d1..bd29ca5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -24,3 +24,9 @@ jobs: run: docker run --rm -e PROCESS_TYPE=test --name django-coleman "mrsarm/django-coleman:${GITHUB_REF_SLUG}" - name: Push Docker image run: docker push "mrsarm/django-coleman:${GITHUB_REF_SLUG}" + - name: Tag "latest" + if: ${{ github.ref == 'refs/heads/master' }} + run: docker tag "mrsarm/django-coleman:${GITHUB_REF_SLUG}" mrsarm/django-coleman:latest + - name: Release "latest" + if: ${{ github.ref == 'refs/heads/master' }} + run: docker push mrsarm/django-coleman:latest