Skip to content

Publish docker image from CI #91

Publish docker image from CI

Publish docker image from CI #91

Workflow file for this run

name: Docker Image CI
on: [push]
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
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/}"