Skip to content

Commit

Permalink
Update docker_hub_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe99barchetta authored Nov 4, 2024
1 parent 98394c7 commit dc2bdbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docker_hub_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
bump-version:
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.bump_version.outputs.new_version }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -66,11 +68,14 @@ jobs:
run: echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ciuse99 --password-stdin

- name: Build and Push Docker Image
env:
new_version: ${{ needs.bump-version.outputs.new_version }}
run: |
echo "New version tag: ${{ env.new_version }}"
docker buildx build \
--platform linux/amd64,linux/arm64 \
--cache-from type=registry,ref=ciuse99/suggestarr:cache \
--cache-to type=registry,ref=ciuse99/suggestarr:cache,mode=max \
-t ciuse99/suggestarr:latest \
-t ciuse99/suggestarr:${{ env.new_version }} \
-t ciuse99/suggestarr:$new_version \
-f docker/Dockerfile . --push

0 comments on commit dc2bdbd

Please sign in to comment.