Skip to content

Add metacpan prefix to image name in docker-compose.yml #7

Add metacpan prefix to image name in docker-compose.yml

Add metacpan prefix to image name in docker-compose.yml #7

---
name: Build deployment container
on:
push:
branches:
- main
- preview
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-22.04
name: Docker Push
steps:
- uses: actions/checkout@v3
- name: create dummy secrets
run: mkdir private-config && touch private-config/.pgpass && chmod 600 private-config/.pgpass
- name: Docker build
run: docker build . -t metacpan/perl5-coresmokedb-api:latest
- name: Run Perl tests
run: docker run -i metacpan/perl5-coresmokedb-api prove -Ilocal/lib/perl5 -lw t
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Push build to Docker hub
run: docker push metacpan/perl5-coresmokedb-api:latest