diff --git a/.github/workflows/build-debian-image-main.yml b/.github/workflows/build-debian-image-latest.yml similarity index 96% rename from .github/workflows/build-debian-image-main.yml rename to .github/workflows/build-debian-image-latest.yml index 6e4ba53..3979ea8 100644 --- a/.github/workflows/build-debian-image-main.yml +++ b/.github/workflows/build-debian-image-latest.yml @@ -1,23 +1,23 @@ # Github action to build Docker image from main branch (tag: latest) -name: Build debian based image (latest) +name: Build debian image (latest) on: - workflow_dispatch: release: types: - - published - schedule: - - cron: '42 3 * * 5' + - released jobs: bulid-latest-image: runs-on: ubuntu-latest steps: - - name: Checkout repo (main) + - name: Getting published release tag + run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - name: Checkout repo uses: actions/checkout@v2.4.0 with: repository: 'buanet/ioBroker.docker' - ref: 'main' + ref: ${{ env.RELEASE_TAG }} - name: Get and write version and date id: version