Skip to content

Commit

Permalink
feat: push new tags always also with the latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tauu committed Jan 2, 2024
1 parent ec3b07b commit 017e28f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 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
25 changes: 18 additions & 7 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:
build-push-image:
Expand All @@ -24,14 +28,21 @@ jobs:
run: |
docker build -f Dockerfile -t tauu/flutter-web-driver: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-web-driver:${{inputs.version}} .
- name: docker push latest
if: ${{ inputs.version == '' }}
- name: docker build version tag
if: ${{ inputs.version != '' && inputs.latest }}
run: |
docker push tauu/flutter-web-driver:latest
- name: docker push version tag
if: ${{ inputs.version != '' }}
docker build -f Dockerfile --build-arg FLUTTER_VERSION=${{inputs.version}} -t tauu/flutter-web-driver:${{inputs.version}} -t tauu/flutter-web-driver:latest .
- name: docker push all tags
run: |
docker push tauu/flutter-web-driver:${{inputs.version}}
docker push -a tauu/flutter-web-driver
# - name: docker push latest
# if: ${{ inputs.version == '' }}
# run: |
# docker push tauu/flutter-web-driver:latest
# - name: docker push version tag
# if: ${{ inputs.version != '' }}
# run: |
# docker push tauu/flutter-web-driver:${{inputs.version}}

0 comments on commit 017e28f

Please sign in to comment.