Compare commits

..

2 Commits

Author SHA1 Message Date
sebastas dbbca3c13e Version 1.0.0
Build and publish Docker image / build-and-push (release) Failing after 3m35s
2026-06-06 17:39:20 +02:00
sebastas 1094b2c92b Added workflow for publishing package 2026-06-06 17:38:20 +02:00
2 changed files with 49 additions and 1 deletions
+48
View File
@@ -0,0 +1,48 @@
name: Build and publish Docker image
on:
release:
types: [published]
env:
REGISTRY: gitea.kanawave.net
REGISTRY_USERNAME: sebastas
IMAGE_NAME: ${{ gitea.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
# Permissions are not yet supported in Gitea Actions -> https://github.com/go-gitea/gitea/issues/23642#issuecomment-2119876692
# permissions:
# contents: read
# packages: write
# attestations: write
# id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
id: push
uses: docker/build-push-action@v5
with:
context: .
# file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tally-counter",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",