Skip to content

Commit

Permalink
remove azure pipelines (NewFuture#339)
Browse files Browse the repository at this point in the history
* remove azure pipelines

* fix docker test

* fix docker test

* fix docker test
  • Loading branch information
NewFuture committed Jul 28, 2022
1 parent 653aca1 commit 7a1bf5c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 152 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Package binary
run: pyinstaller --noconfirm --clean ./.build/ddns.spec

- run: ./dist/ddns || test -e "config.json"
- run: ./dist/ddns || test -e config.json
- run: ./dist/ddns -h

# Upload build result
Expand All @@ -99,16 +99,20 @@ jobs:
docker:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
DOCKER_REPO: newfuture/ddns
DOCKER_PLATFORMS: linux/amd64,linux/arm,linux/arm64
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- run: docker buildx build --output "type=image" --platform ${DOCKER_PLATFORMS} .

release-pypi:
- run: sed -i -e "s#\${BUILD_SOURCEBRANCHNAME}#${{ github.ref_name }}#" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
- uses: docker/build-push-action@v3
with:
context: .
load: true
tags: ddns:test
- name: test help command
run: docker run --rm ddns:test -h
- name: test config generation
run: docker run --rm -v "$(pwd)":/config/ ddns:test -c /config/config.json || test -e config.json

preview-pypi:
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: [lint, pypi]
Expand All @@ -127,18 +131,21 @@ jobs:
repository_url: https://test.pypi.org/legacy/
print_hash: true

release-github-docker:
preview-docker:
runs-on: ubuntu-latest
if: github.event_name == 'push'
timeout-minutes: 5
needs: [docker]
environment:
name: preview
url: https://github.com/NewFuture/DDNS/pkgs/container/DDNS/ddns/?tag=master
url: https://github.com/NewFuture/DDNS/pkgs/container/ddns/?tag=master
permissions:
packages: write
steps:
- uses: actions/checkout@v3
- run: sed -i -e "s#\${BUILD_SOURCEBRANCHNAME}#${{ github.ref_name }}#" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
Expand All @@ -151,6 +158,7 @@ jobs:
- uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,8 @@
[![PyPI](https://img.shields.io/pypi/v/ddns.svg?label=DDNS&style=social)](https://pypi.org/project/ddns/)
[![Build Status](https://github.com/NewFuture/DDNS/actions/workflows/python-build.yml/badge.svg?event=push)](https://github.com/NewFuture/DDNS/actions/workflows/build.yml)
[![Build Status](https://dev.azure.com/NewFuture-CI/ddns-ci/_apis/build/status/NewFuture.DDNS?branchName=master)](https://dev.azure.com/NewFuture-CI/ddns-ci/_build/latest?definitionId=2&branchName=master)
[![latest deploy](https://vsrm.dev.azure.com/NewFuture-CI/_apis/public/Release/badge/2ab09aad-c4b4-4c57-ab1b-2fb92c485664/1/1)](https://github.com/NewFuture/DDNS/releases/latest)

<details>

<summary markdown="span">Build Details
</summary>

- Linux Python (2 和 3): [![Build Status](https://github.com/NewFuture/DDNS/actions/workflows/python-build.yml/badge.svg?event=push)](https://github.com/NewFuture/DDNS/actions/workflows/build.yml)
- Windows Python3: [![Build Status](https://dev.azure.com/NewFuture-CI/ddns-ci/_apis/build/status/NewFuture.DDNS?branchName=master&jobName=Windows&configuration=Windows%20Python3)](https://dev.azure.com/NewFuture-CI/ddns-ci/_build/latest?definitionId=2&branchName=master)
- Mac OSX Python3: [![Build Status](https://dev.azure.com/NewFuture-CI/ddns-ci/_apis/build/status/NewFuture.DDNS?branchName=master&jobName=MacOS&configuration=MacOS%20Python3)](https://dev.azure.com/NewFuture-CI/ddns-ci/_build/latest?definitionId=2&branchName=master)

</details>

---

## Features
Expand Down
129 changes: 0 additions & 129 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 7a1bf5c

Please sign in to comment.