add docker tag deploy pipeline

This commit is contained in:
Adora Laura Kalb 2023-05-05 09:25:24 +02:00
parent fec2e2afd4
commit ef574ec8e3
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
3 changed files with 59 additions and 1 deletions

38
.dockerignore Normal file
View file

@ -0,0 +1,38 @@
# flyctl launch added from .gitignore
# ---> Go
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
**/*.exe
**/*.exe~
**/*.dll
**/*.so
**/*.dylib
# Test binary, built with `go test -c`
**/*.test
# Output of the go coverage tool, specifically when used with LiteIDE
**/*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
**/go.work
**/.idea
# flyctl launch added from .idea/.gitignore
# Default ignored files
.idea/shelf
.idea/workspace.xml
# Editor-based HTTP Client requests
.idea/httpRequests
# Datasource local storage ignored files
.idea/dataSources
.idea/dataSources.local.xml
fly.toml
examples/
.woodpecker/

4
.gitignore vendored
View file

@ -21,4 +21,6 @@
# Go workspace file # Go workspace file
go.work go.work
.idea/ .idea/
fly.toml

View file

@ -4,6 +4,9 @@ when:
pipeline: pipeline:
docker-deploy-push: docker-deploy-push:
when:
event:
- push
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
dockerfile: Dockerfile dockerfile: Dockerfile
@ -12,5 +15,20 @@ pipeline:
registry: codeberg.org registry: codeberg.org
tags: latest tags: latest
username: lauralani username: lauralani
password:
from_secret: codeberg_token
docker-deploy-tag:
when:
event:
- tag
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: Dockerfile
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le
repo: codeberg.org/lauralani/go-urlsh
registry: codeberg.org
auto_tag: true
username: lauralani
password: password:
from_secret: codeberg_token from_secret: codeberg_token