|
@ -47,7 +47,7 @@ jobs: |
|
|
run: | |
|
|
run: | |
|
|
echo ::set-output name=version::$(git describe --tags --abbrev=0) |
|
|
echo ::set-output name=version::$(git describe --tags --abbrev=0) |
|
|
|
|
|
|
|
|
- name: Build and Push (nightly) |
|
|
- name: Build and Push (dev) |
|
|
if: github.ref == 'refs/heads/main' |
|
|
if: github.ref == 'refs/heads/main' |
|
|
uses: docker/build-push-action@v2 |
|
|
uses: docker/build-push-action@v2 |
|
|
with: |
|
|
with: |
|
@ -55,8 +55,8 @@ jobs: |
|
|
push: true |
|
|
push: true |
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64 |
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64 |
|
|
tags: | |
|
|
tags: | |
|
|
xjasonlyu/tun2socks:nightly |
|
|
xjasonlyu/tun2socks:dev |
|
|
ghcr.io/xjasonlyu/tun2socks:nightly |
|
|
ghcr.io/xjasonlyu/tun2socks:dev |
|
|
|
|
|
|
|
|
- name: Build and Push (latest) |
|
|
- name: Build and Push (latest) |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|
if: startsWith(github.ref, 'refs/tags/') |
|
|