Publish image to Gitea registry
This commit is contained in:
@@ -24,3 +24,33 @@ jobs:
|
||||
|
||||
- name: Build check
|
||||
run: npm run build
|
||||
|
||||
container:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: github.event_name != 'pull_request'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Gitea registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.wilkensxl.de
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.wilkensxl.de/mrsphay/dockge-image-update-checker:latest
|
||||
git.wilkensxl.de/mrsphay/dockge-image-update-checker:${{ github.sha }}
|
||||
|
||||
Reference in New Issue
Block a user