Skip to content

CI

CI #36

Workflow file for this run

name: CI
on:
push:
schedule:
- cron: '26 2 3 * *'
jobs:
push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build docker image
run: docker build -t czhttpd .
- name: Run integration tests
run: docker run czhttpd make
- name: Log in to container registry
run: "echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin"
- name: Push image to container repo
run: |
target=ghcr.io/${{github.repository_owner}}/czhttpd
docker tag czhttpd $target
docker push $target