Skip to content

Commit

Permalink
Fix GitHub action script to push JSON arm version
Browse files Browse the repository at this point in the history
  • Loading branch information
philhawthorne committed Nov 27, 2023
1 parent 8f1b1e4 commit bbad8a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
if: success()
id: prepare
run: |
echo ::set-output name=docker_platform::${DOCKER_TARGET_PLATFORM}
echo ::set-output name=docker_image::${DOCKER_REGISTRY}/${DOCKER_IMAGE}
echo ::set-output name=version::${GITHUB_RUN_NUMBER}
echo "docker_platform=${DOCKER_TARGET_PLATFORM}" >> "$GITHUB_OUTPUT"
echo "docker_image=philhawthorne/ha-dockermon:json-arm" >> "$GITHUB_OUTPUT"
echo "version=${GITHUB_RUN_NUMBER}" >> "$GITHUB_OUTPUT"
- name: Docker Login
if: success()
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
- name: Run Buildx (push image)
if: success()
run: |
docker buildx build --platform ${{ steps.prepare.outputs.docker_platform }} --tag ${{ steps.prepare.outputs.docker_image }}:json-arm --file ./Dockerfile.RaspberryPi --output type=image,push=true .
docker buildx build --platform ${{ steps.prepare.outputs.docker_platform }} --tag ${{ steps.prepare.outputs.docker_image }} --file ./Dockerfile.RaspberryPi --output type=image,push=true .

0 comments on commit bbad8a1

Please sign in to comment.