2020-06-01 12:27:26 +02:00
|
|
|
name: Docker release build
|
|
|
|
|
2020-05-28 09:22:17 +02:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Build image job
|
|
|
|
steps:
|
|
|
|
- name: Checkout master
|
2020-06-01 12:27:26 +02:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-05-28 09:22:17 +02:00
|
|
|
- name: Get actual patch version
|
|
|
|
id: actual_patch_version
|
|
|
|
run: echo ::set-output name=ACTUAL_PATCH_VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//g')
|
|
|
|
- name: Get actual minor version
|
|
|
|
id: actual_minor_version
|
|
|
|
run: echo ::set-output name=ACTUAL_MINOR_VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//g' | cut -d "." -f 1,2)
|
|
|
|
- name: Get actual major version
|
|
|
|
id: actual_major_version
|
|
|
|
run: echo ::set-output name=ACTUAL_MAJOR_VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//g' | cut -d "." -f 1)
|
|
|
|
- name: Build and publish image
|
2020-06-10 17:51:05 +02:00
|
|
|
uses: ilteoood/docker_buildx@439099796bfc03dd9cedeb72a0c7cb92be5cc92c
|
2020-05-28 09:22:17 +02:00
|
|
|
with:
|
|
|
|
tag: latest,${{ steps.actual_patch_version.outputs.ACTUAL_PATCH_VERSION }},${{ steps.actual_minor_version.outputs.ACTUAL_MINOR_VERSION }},${{ steps.actual_major_version.outputs.ACTUAL_MAJOR_VERSION }}
|
|
|
|
imageName: rclone/rclone
|
2020-06-01 12:27:26 +02:00
|
|
|
platform: linux/amd64,linux/386,linux/arm64,linux/arm/v7
|
2020-05-28 09:22:17 +02:00
|
|
|
publish: true
|
|
|
|
dockerHubUser: ${{ secrets.DOCKER_HUB_USER }}
|
|
|
|
dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }}
|