Skip to content
name: "Build and push image to Github Container Registry"
on:
release:
types: [published]
jobs:
publish:
name: Push Automat API docs to GHCR
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Push api docs
uses: docker/build-push-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
path: .
dockerfile: ./Dockerfile
repository: robokopu24/api-docs
tags: latest,${{ steps.get_version.outputs.VERSION }}