Files
connect4-moderator-server/.github/workflows/docker-publish.yml
Workflow config file is invalid. Please check your config file: yaml: line 15: did not find expected key

39 lines
964 B
YAML

name: Docker Image CI
on:
push:
tags:
- 'v*'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: [actions/checkout](https://github.com)@v4
- name: Log in to GHCR
uses: [docker/login-action](https://github.com)@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: [docker/metadata-action](https://github.com)@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: [docker/build-push-action](https://github.com/docker/build-push-action)@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}