Skip to content

Commit

Permalink
feat: push new versions also as latest image
Browse files Browse the repository at this point in the history
  • Loading branch information
tauu committed Jan 5, 2024
1 parent c95e0c1 commit 64a6f23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-latest-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
secrets: inherit
with:
version: ${{needs.check_tags.outputs.latestFlutterTag}}
latest: true

# Use the keepalive action to ensure the cron jobs will not be suspended after
# 90 days of inactivity.
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
version:
type: string
required: false
latest:
type: boolean
required: false
default: false

jobs:

Expand All @@ -26,14 +30,14 @@ jobs:
run: |
docker build -f Dockerfile -t tauu/flutter-windows-builder:latest .
- name: docker build version tag
if: ${{ inputs.version != '' }}
if: ${{ inputs.version != '' && ! inputs.latest }}
run: |
docker build -f Dockerfile --build-arg FLUTTER_VERSION=${{inputs.version}} -t tauu/flutter-windows-builder:${{inputs.version}} .
- name: docker push latest
if: ${{ inputs.version == '' }}
- name: docker build version and latest tag
if: ${{ inputs.version != '' && inputs.latest }}
run: |
docker push tauu/flutter-windows-builder:latest
- name: docker push version tag
docker build -f Dockerfile --build-arg FLUTTER_VERSION=${{inputs.version}} -t tauu/flutter-windows-builder:${{inputs.version}} tauu/flutter-windows-builder:latest .
- name: docker push all tag
if: ${{ inputs.version != '' }}
run: |
docker push tauu/flutter-windows-builder:${{inputs.version}}
docker push -a tauu/flutter-windows-builder

0 comments on commit 64a6f23

Please sign in to comment.