File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,15 +28,22 @@ jobs:
2828 password : ${{ secrets.DOCKERHUB_TOKEN }}
2929
3030 - name : Get current date
31+ if : github.ref == 'refs/heads/main'
3132 id : date
3233 run : echo "DATE=$(date +'%d-%m-%y')" >> $GITHUB_ENV
3334
35+ - name : Get Pull Request ID
36+ if : github.event_name == 'pull_request'
37+ id : pr
38+ run : echo "PR_ID=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
39+
3440 - name : Build and Push Docker Image
3541 uses : docker/build-push-action@v4
3642 with :
3743 context : .
3844 push : true
3945 tags : |
40- shmayro/dockerify-android:latest
41- shmayro/dockerify-android:${{ env.DATE }}
46+ ${{ github.ref == 'refs/heads/main' && 'shmayro/dockerify-android:latest' || '' }}
47+ ${{ github.ref == 'refs/heads/main' && format('shmayro/dockerify-android:{0}', env.DATE) || '' }}
48+ ${{ github.event_name == 'pull_request' && format('shmayro/dockerify-android:pr-{0}', env.PR_ID) || '' }}
4249 platforms : linux/amd64
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ apply_settings() {
1616 adb shell settings put system screen_off_timeout 15000
1717 adb shell settings put global private_dns_mode hostname
1818 adb shell settings put global private_dns_specifier dns2024.haroun.dev
19- adb shell svc wifi disable
19+ # adb shell svc wifi disable
2020}
2121
2222# Detect ip and forward ADB ports from the container's network
You can’t perform that action at this time.
0 commit comments