3 Commits
Author SHA1 Message Date
brb 5beab5571a added release workflow
Docker / Publish (push) Has been cancelled
2023-07-24 11:57:58 +02:00
brb b5d34fc48c updated description 2023-07-24 11:55:34 +02:00
brb ef6bdf58ce added Dockerfile 2023-07-24 11:52:32 +02:00
3 changed files with 48 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Docker
run-name: Build and Publish Service
runs-on: ubuntu-latest
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3
-
name: Set Environment Variables
id: vars
env:
repository: ${{gitea.repository}}
ref_name: ${{gitea.ref_name}}
run: |
echo $repository
echo ::set-output name=OWNER::${repository#/*}
echo ::set-output name=PROJECT::${repository#*/}
echo $ref_name
echo ::set-output name=TAG::${ref_name#refs/*/}
-
name: Push Image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: 192.168.1.2:5000/${{gitea.repository}}:${{steps.vars.outputs.TAG}}
+12
View File
@@ -0,0 +1,12 @@
FROM jenkins/jenkins:latest
USER root
RUN apt-get update && apt-get install -y lsb-release
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
https://download.docker.com/linux/debian/gpg
RUN echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \
https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"
+3 -1
View File
@@ -1,3 +1,5 @@
# jenkins
Personal derivative of Jenkins.
Personal derivative of Jenkins.
Based on instructions from [devopsjourney1](https://github.com/devopsjourney1/jenkins-101).