]> git.immae.eu Git - github/fretlink/docker-rundeckforci.git/blame - .github/workflows/docker-hub.yml
fix CI with correct build-args and correct tags
[github/fretlink/docker-rundeckforci.git] / .github / workflows / docker-hub.yml
CommitLineData
766a8d2f
GD
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:
924cf233 30 build-args: "RUNDECK_VERSION=${{ matrix.rundeck_version }}"
766a8d2f
GD
31 file: Dockerfile
32 load: true
924cf233 33 tags: fretlink/rundeckforci:${{ matrix.rundeck_version }}-latest