Skip to content

Merge pull request #2927 from metacpan/haarg/github-auth-with-app #17

Merge pull request #2927 from metacpan/haarg/github-auth-with-app

Merge pull request #2927 from metacpan/haarg/github-auth-with-app #17

---
name: Build production container
on:
push:
branches:
- master
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-22.04
name: Docker Push
steps:
- uses: actions/checkout@v3
- name: docker build
run: docker build . -t metacpan/metacpan-web:latest -t metacpan/metacpan-web:$GITHUB_SHA
- name: run Perl tests
run: docker run -i metacpan/metacpan-web carton exec prove -lr --jobs 2 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/metacpan-web:latest