mirror of
https://github.com/dedicatedcode/reitti.git
synced 2026-01-09 17:37:57 -05:00
feat(628): publish Docker image to GitHub Container Registry (#633)
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -6,8 +6,11 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
tagged-release:
|
||||
build-and-publish-develop:
|
||||
name: "Release"
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
@@ -32,6 +35,12 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
@@ -42,6 +51,7 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
dedicatedcode/reitti
|
||||
ghcr.io/${{ github.repository }}
|
||||
tags: |
|
||||
type=raw,value=develop,enable={{is_default_branch}}
|
||||
- name: Build and push
|
||||
|
||||
Reference in New Issue
Block a user