From 8a8d23253d96580647940ae29d584b66688edc5d Mon Sep 17 00:00:00 2001 From: Ryan Borstelmann Date: Mon, 3 Jun 2024 21:05:09 -0500 Subject: [PATCH] Updated to new GITHUB_OUTPUT syntax, added fetch-depth --- .actrc | 2 +- .github/workflows/main.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.actrc b/.actrc index f349288..ad48afe 100644 --- a/.actrc +++ b/.actrc @@ -1,4 +1,4 @@ --P self-hosted=ghcr.io/catthehacker/ubuntu:act-latest +-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest --container-architecture linux/amd64 -e .act-event.json --bind \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 50a5f57..fe37e89 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,10 +4,8 @@ name: Docker Build & Push on: push: - branches: - - master - paths: - - 'Dockerfile' + tags: + - "*" workflow_dispatch: # Allows you to run this workflow manually from the Actions tab env: @@ -22,6 +20,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 if: ${{ !github.event.act }} # skip during local actions testing + with: + fetch-depth: '0' - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -33,9 +33,9 @@ jobs: if: success() id: prepare run: | - echo ::set-output name=docker_platform::${DOCKER_TARGET_PLATFORM} - echo "::set-output name=tag::$(git describe --tags --abbrev=0)" - + echo "docker_platform=${DOCKER_TARGET_PLATFORM}" >> $GITHUB_OUTPUT + echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT + - name: Login to Docker Hub uses: docker/login-action@v3 with: