summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-18 14:03:07 +0100
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-11-18 14:03:07 +0100
commit766a8d2ff39c05693477fc2792cdcc4020b07b81 (patch)
tree93fffa3770d49a0d229b0c55c65ffbb062a148a1
parentcda6cf5ed73dbfbca7bc353395d0310801a51daa (diff)
downloaddocker-rundeckforci-766a8d2ff39c05693477fc2792cdcc4020b07b81.tar.gz
docker-rundeckforci-766a8d2ff39c05693477fc2792cdcc4020b07b81.tar.zst
docker-rundeckforci-766a8d2ff39c05693477fc2792cdcc4020b07b81.zip
Initial version
-rw-r--r--.github/workflows/docker-hub.yml35
-rw-r--r--Dockerfile4
-rw-r--r--tokens.properties1
3 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml
new file mode 100644
index 0000000..0369aa6
--- /dev/null
+++ b/.github/workflows/docker-hub.yml
@@ -0,0 +1,35 @@
1name: Build and push docker image
2
3on:
4 push:
5 branches:
6 - 'main'
7 tags:
8 - '*'
9
10jobs:
11 docker:
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 rundeck_version:
16 - SNAPSHOT
17 - 3.4.7
18 - 3.3.11
19 steps:
20 - name: Checkout
21 uses: actions/checkout@v2
22 - name: Login to DockerHub
23 uses: docker/login-action@v1
24 with:
25 username: ${{ secrets.DOCKERHUB_USERNAME }}
26 password: ${{ secrets.DOCKERHUB_TOKEN }}
27 - name: Build and export to Docker
28 uses: docker/build-push-action@v2
29 with:
30 context: .
31 build-args:
32 - RUNDECK_VERSION=${{ matrix.rundeck_version }}
33 file: Dockerfile
34 load: true
35 tags: fretlink/rundeckforci-${{ matrix.rundeck_version }}-latest
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..ef2a283
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,4 @@
1ARG RUNDECK_VERSION=3.4.6
2FROM rundeck/rundeck:${RUNDECK_VERSION}
3USER root
4ADD tokens.properties /etc/tokens.properties
diff --git a/tokens.properties b/tokens.properties
new file mode 100644
index 0000000..3f44bf8
--- /dev/null
+++ b/tokens.properties
@@ -0,0 +1 @@
admin: testtoken, admin