30 lines
752 B
YAML
30 lines
752 B
YAML
name: Push to GHCR
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
- name: Build & push
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: |
|
|
ghcr.io/tdemin/gmnhg:latest
|
|
ghcr.io/tdemin/gmnhg:${{ github.event.release.tag_name }}
|