Add metacpan prefix to image name in docker-compose.yml #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |