Skip to content

Remove docker layer caching step from actions workflow #522

Remove docker layer caching step from actions workflow

Remove docker layer caching step from actions workflow #522

Workflow file for this run

name: CritiqueBrainz CI
on:
push:
branches: [ master ]
pull_request:
branches: [ '*' ]
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create configuration file
run: cp custom_config.py.example custom_config.py
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
continue-on-error: true
- name: Run tests
run: ./test.sh
prod:
name: Build Production Image
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
continue-on-error: true
- uses: satackey/[email protected]
continue-on-error: true
- name: Build production image
run: docker build --build-arg GIT_COMMIT_SHA=HEAD .