From 766a8d2ff39c05693477fc2792cdcc4020b07b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Thu, 18 Nov 2021 14:03:07 +0100 Subject: Initial version --- .github/workflows/docker-hub.yml | 35 +++++++++++++++++++++++++++++++++++ Dockerfile | 4 ++++ tokens.properties | 1 + 3 files changed, 40 insertions(+) create mode 100644 .github/workflows/docker-hub.yml create mode 100644 Dockerfile create mode 100644 tokens.properties 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 @@ +name: Build and push docker image + +on: + push: + branches: + - 'main' + tags: + - '*' + +jobs: + docker: + runs-on: ubuntu-latest + strategy: + matrix: + rundeck_version: + - SNAPSHOT + - 3.4.7 + - 3.3.11 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and export to Docker + uses: docker/build-push-action@v2 + with: + context: . + build-args: + - RUNDECK_VERSION=${{ matrix.rundeck_version }} + file: Dockerfile + load: true + 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 @@ +ARG RUNDECK_VERSION=3.4.6 +FROM rundeck/rundeck:${RUNDECK_VERSION} +USER root +ADD 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 -- cgit v1.2.3