Fix permissions #18
Workflow file for this run
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: Reference Implementation | |
on: | |
push: | |
branches: [ feature/docker ] | |
jobs: | |
build-and-push-docker-image: | |
# Publish to GitHub Container Registry | |
# Master branch only | |
# if: ${{ github.ref == 'refs/heads/master' }} | |
# needs: | |
# - tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
env: | |
REGISTRY: ghcr.io | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for OpenActive Test Suite | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ${{ env.REGISTRY }}/openactive/test-suite | |
labels: | | |
org.opencontainers.image.title=OpenActive Test Suite | |
org.opencontainers.image.description=Test suite for OpenActive data publishing and Open Booking API implementations | |
org.opencontainers.image.vendor=OpenActive | |
tags: | | |
latest | |
- name: Build and push Docker image for OpenActive Test Suite | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |