Nightly Test #1279
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: Nightly Test | |
# Run the nightly tests at at 8 AM UTC / 1 AM Pacific | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
env: | |
PROD_IMAGE: ghcr.io/metcalfc/docker-action-examples:edge | |
HUB_PULL_SECRET: NA | |
steps: | |
# GitHub Actions do not automatically checkout your projects. If you need the code | |
# you need to check it out. | |
- name: Checkout | |
uses: actions/checkout@v3.6.0 | |
- name: Login to ghcr | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
- name: Compose up | |
run: docker-compose -f docker-compose.yml up -d | |
- name: Check running containers | |
run: docker ps -a | |
- name: Check logs | |
run: docker-compose -f docker-compose.yml logs | |
- name: Compose down | |
run: docker-compose -f docker-compose.yml down |