mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 18:52:09 +00:00
Update build scripts
This commit is contained in:
1 file changed
+4
-55
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get commit SHA
|
- name: Get commit SHA
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and export
|
- name: Build and export
|
||||||
id: build
|
id: build
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get commit SHA
|
- name: Get commit SHA
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and export
|
- name: Build and export
|
||||||
id: build
|
id: build
|
||||||
@@ -153,9 +153,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
@@ -167,7 +164,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get commit SHA
|
- name: Get commit SHA
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and export
|
- name: Build and export
|
||||||
id: build
|
id: build
|
||||||
@@ -226,9 +223,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
@@ -240,7 +234,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get commit SHA
|
- name: Get commit SHA
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and export
|
- name: Build and export
|
||||||
id: build
|
id: build
|
||||||
@@ -317,38 +311,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: /tmp/images/
|
path: /tmp/images/
|
||||||
|
|
||||||
# - name: Load image
|
|
||||||
# if: github.ref == 'refs/heads/master'
|
|
||||||
# run: |
|
|
||||||
# docker load --input /tmp/image_amd64/image_amd64.tar
|
|
||||||
# docker load --input /tmp/image_386/image_386.tar
|
|
||||||
# docker load --input /tmp/image_armv7/image_armv7.tar
|
|
||||||
# docker load --input /tmp/image_arm64/image_arm64.tar
|
|
||||||
# docker image ls -a
|
|
||||||
|
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
# - name: Get commit SHA
|
|
||||||
# id: vars
|
|
||||||
# run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
|
||||||
|
|
||||||
# - name: Docker buildx image and push on master branch
|
|
||||||
# if: github.ref == 'refs/heads/master'
|
|
||||||
# uses: docker/build-push-action@v3
|
|
||||||
# with:
|
|
||||||
# platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386
|
|
||||||
# context: scripts/
|
|
||||||
# tags: tindy2013/subconverter:latest
|
|
||||||
# build-args: |
|
|
||||||
# SHA=${{ steps.vars.outputs.sha_short }}
|
|
||||||
# THREADS=1
|
|
||||||
# outputs: |
|
|
||||||
# type=image,push=true
|
|
||||||
|
|
||||||
- name: Replace tag without `v`
|
- name: Replace tag without `v`
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
@@ -358,25 +326,6 @@ jobs:
|
|||||||
return context.payload.ref.replace(/\/?refs\/tags\/v/, '')
|
return context.payload.ref.replace(/\/?refs\/tags\/v/, '')
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
|
|
||||||
# - name: Load release image
|
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
# run: |
|
|
||||||
# docker load --input /tmp/image_amd64/image_amd64_release.tar
|
|
||||||
# docker load --input /tmp/image_386/image_386_release.tar
|
|
||||||
# docker load --input /tmp/image_armv7/image_armv7_release.tar
|
|
||||||
# docker load --input /tmp/image_arm64/image_arm64_release.tar
|
|
||||||
# docker image ls -a
|
|
||||||
|
|
||||||
# - name: Docker buildx image and push on release
|
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
# uses: docker/build-push-action@v3
|
|
||||||
# with:
|
|
||||||
# platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386
|
|
||||||
# context: scripts/
|
|
||||||
# tags: tindy2013/subconverter:${{steps.version.outputs.result}}
|
|
||||||
# build-args: THREADS=1
|
|
||||||
# outputs: type=image,push=true
|
|
||||||
|
|
||||||
- name: Merge and push manifest on master branch
|
- name: Merge and push manifest on master branch
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: python scripts/merge_manifest.py
|
run: python scripts/merge_manifest.py
|
||||||
|
|||||||
Reference in new issue
Block a user