diff --git a/.github/workflows/build-deployment-container.yml b/.github/workflows/build-deployment-container.yml new file mode 100644 index 0000000..a26b591 --- /dev/null +++ b/.github/workflows/build-deployment-container.yml @@ -0,0 +1,23 @@ +--- +name: Build deployment container (Web-frontend) +on: + push: + branches: + - main + - preview + 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/perl5-coresmokedb-web:latest + - 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-web:latest