Use built-in GITHUB_TOKEN #12
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: Test | |
on: | |
push: | |
branches: | |
- docker-compose | |
jobs: | |
docker: | |
timeout-minutes: 30 | |
runs-on: docker | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Start containers | |
run: sudo make docker_up | |
- name: Stop containers | |
if: always() | |
run: sudo make docker_down |