Skip to content

Update README.md

Update README.md #65

Workflow file for this run

name: CI
on:
push:
release:
types: [ published ]
jobs:
checks:
name: "Run Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- run: |
docker-compose run \
-v $GOOGLE_APPLICATION_CREDENTIALS:'/gcloud_auth' \
-e GOOGLE_APPLICATION_CREDENTIALS='/gcloud_auth' \
gtfs-rt-validator pytest tests
build_push:
name: Package docker image
runs-on: ubuntu-18.04
needs: checks
if: github.event_name == 'release' && github.event.action == 'published'
steps:
#- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/${{github.repository}}:${{ github.event.release.tag_name }}