blob: 78c645d18abe379f98a8e7ff732c8d838209d75e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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:
build-args: "RUNDECK_VERSION=${{ matrix.rundeck_version }}"
file: Dockerfile
push: true
tags: fretlink/rundeckforci:${{ matrix.rundeck_version }}-latest
|