This commit is contained in:
parent
caa7e7a5dc
commit
f6415a90d7
2 changed files with 80 additions and 1 deletions
30
.woodpecker/push-image.yml
Normal file
30
.woodpecker/push-image.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: push-image
|
||||||
|
image: eclipse-temurin:21-jdk-alpine
|
||||||
|
environment:
|
||||||
|
REGISTRY_USERNAME:
|
||||||
|
from_secret: registry_username
|
||||||
|
REGISTRY_PASSWORD:
|
||||||
|
from_secret: registry_password
|
||||||
|
commands:
|
||||||
|
- ./mvnw compile jib-maven-plugin:build -Ddocker.repo.username=$${REGISTRY_USERNAME} -Ddocker.repo.password=$${REGISTRY_PASSWORD}
|
||||||
|
|
||||||
|
- name: notify
|
||||||
|
image: deblan/woodpecker-email
|
||||||
|
settings:
|
||||||
|
debug: true
|
||||||
|
dsn:
|
||||||
|
from_secret: smtp_url
|
||||||
|
from:
|
||||||
|
address:
|
||||||
|
from_secret: email_sender
|
||||||
|
name: "Woodpecker CI"
|
||||||
|
recipients_only: true
|
||||||
|
recipients:
|
||||||
|
from_secret: email_recipient
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
51
pom.xml
51
pom.xml
|
@ -19,8 +19,19 @@
|
||||||
<mockito.version>5.14.1</mockito.version>
|
<mockito.version>5.14.1</mockito.version>
|
||||||
<assertj.version>3.26.3</assertj.version>
|
<assertj.version>3.26.3</assertj.version>
|
||||||
<dnsjava.version>3.6.2</dnsjava.version>
|
<dnsjava.version>3.6.2</dnsjava.version>
|
||||||
|
<jib.version>3.4.4</jib.version>
|
||||||
|
<docker.repo.username/>
|
||||||
|
<docker.repo.password/>
|
||||||
|
<maven-scm-plugin.version>2.1.0</maven-scm-plugin.version>
|
||||||
|
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<connection>scm:git:ssh://git@git.azw27.de:ryan_harg/ddns-client.git</connection>
|
||||||
|
<developerConnection>scm:git:ssh://git@git.azw27.de:ryan_harg/ddns-client.git</developerConnection>
|
||||||
|
<url>https://git.azw27.de/ryan_harg/ddns-client</url>
|
||||||
|
</scm>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -149,7 +160,45 @@
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.google.cloud.tools</groupId>
|
||||||
|
<artifactId>jib-maven-plugin</artifactId>
|
||||||
|
<version>${jib.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<to>
|
||||||
|
<image>registry.azw27.de/ddnsclient/ddnsclient</image>
|
||||||
|
<tags>
|
||||||
|
<tag>v${project.version}</tag>
|
||||||
|
<tag>latest</tag>
|
||||||
|
</tags>
|
||||||
|
<auth>
|
||||||
|
<username>${docker.repo.username}</username>
|
||||||
|
<password>${docker.repo.password}</password>
|
||||||
|
</auth>
|
||||||
|
</to>
|
||||||
|
<container>
|
||||||
|
<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
|
||||||
|
</container>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-scm-plugin</artifactId>
|
||||||
|
<version>${maven-scm-plugin.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<connectionType>developerConnection</connectionType>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-release-plugin</artifactId>
|
||||||
|
<version>${maven-release-plugin.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<dryRun>true</dryRun>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in a new issue