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: