Skip to content

Use github docker registry instead of dockerhub. #4

Use github docker registry instead of dockerhub.

Use github docker registry instead of dockerhub. #4

name: Publish docker image
on:
push:
# branches: [ dev ]
tags:
- v*
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & push docker image
run: bash build-docker.sh --push
shell: bash