Skip to content

Commit

Permalink
Updated to new GITHUB_OUTPUT syntax, added fetch-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
SlothCroissant committed Jun 4, 2024
1 parent e7cc269 commit 8a8d232
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .actrc
Original file line number Diff line number Diff line change
@@ -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
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 8a8d232

Please sign in to comment.