-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1708 from pierotofy/reportmv
Add extra report file op, disable snap builds
- Loading branch information
Showing
5 changed files
with
104 additions
and
213 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Publish Docker and WSL Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
timeout-minutes: 2880 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
config-inline: | | ||
[worker.oci] | ||
max-parallelism = 1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
# Use the repository information of the checked-out code to format docker tags | ||
- name: Docker meta | ||
id: docker_meta | ||
uses: crazy-max/ghaction-docker-meta@v1 | ||
with: | ||
images: opendronemap/odm | ||
tag-semver: | | ||
{{version}} | ||
- name: Build and push Docker image | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
file: ./portable.Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
no-cache: true | ||
tags: | | ||
${{ steps.docker_meta.outputs.tags }} | ||
opendronemap/odm:latest | ||
# Trigger NodeODM build | ||
- name: Dispatch NodeODM Build Event | ||
id: nodeodm_dispatch | ||
run: | | ||
curl -X POST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/OpenDroneMap/NodeODM/actions/workflows/publish-docker.yaml/dispatches --data '{"ref": "master"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
name: Publish Snap | ||
# name: Publish Snap | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- v** | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# tags: | ||
# - v** | ||
|
||
jobs: | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
architecture: | ||
- amd64 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set Swap Space | ||
uses: pierotofy/set-swap-space@master | ||
with: | ||
swap-size-gb: 12 | ||
- name: Build | ||
id: build | ||
uses: diddlesnaps/snapcraft-multiarch-action@v1 | ||
with: | ||
architecture: ${{ matrix.architecture }} | ||
- name: Publish unstable builds to Edge | ||
if: github.ref == 'refs/heads/master' | ||
uses: snapcore/action-publish@v1 | ||
with: | ||
store_login: ${{ secrets.STORE_LOGIN }} | ||
snap: ${{ steps.build.outputs.snap }} | ||
release: edge | ||
- name: Publish tagged prerelease builds to Beta | ||
# These are identified by having a hyphen in the tag name, e.g.: v1.0.0-beta1 | ||
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') | ||
uses: snapcore/action-publish@v1 | ||
with: | ||
store_login: ${{ secrets.STORE_LOGIN }} | ||
snap: ${{ steps.build.outputs.snap }} | ||
release: beta | ||
- name: Publish tagged stable or release-candidate builds to Candidate | ||
# These are identified by NOT having a hyphen in the tag name, OR having "-RC" or "-rc" in the tag name. | ||
if: startsWith(github.ref, 'refs/tags/v1') && ( ( ! contains(github.ref, '-') ) || contains(github.ref, '-RC') || contains(github.ref, '-rc') ) | ||
uses: snapcore/action-publish@v1 | ||
with: | ||
store_login: ${{ secrets.STORE_LOGIN }} | ||
snap: ${{ steps.build.outputs.snap }} | ||
release: candidate | ||
# jobs: | ||
# build-and-release: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# architecture: | ||
# - amd64 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# - name: Set Swap Space | ||
# uses: pierotofy/set-swap-space@master | ||
# with: | ||
# swap-size-gb: 12 | ||
# - name: Build | ||
# id: build | ||
# uses: diddlesnaps/snapcraft-multiarch-action@v1 | ||
# with: | ||
# architecture: ${{ matrix.architecture }} | ||
# - name: Publish unstable builds to Edge | ||
# if: github.ref == 'refs/heads/master' | ||
# uses: snapcore/action-publish@v1 | ||
# with: | ||
# store_login: ${{ secrets.STORE_LOGIN }} | ||
# snap: ${{ steps.build.outputs.snap }} | ||
# release: edge | ||
# - name: Publish tagged prerelease builds to Beta | ||
# # These are identified by having a hyphen in the tag name, e.g.: v1.0.0-beta1 | ||
# if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') | ||
# uses: snapcore/action-publish@v1 | ||
# with: | ||
# store_login: ${{ secrets.STORE_LOGIN }} | ||
# snap: ${{ steps.build.outputs.snap }} | ||
# release: beta | ||
# - name: Publish tagged stable or release-candidate builds to Candidate | ||
# # These are identified by NOT having a hyphen in the tag name, OR having "-RC" or "-rc" in the tag name. | ||
# if: startsWith(github.ref, 'refs/tags/v1') && ( ( ! contains(github.ref, '-') ) || contains(github.ref, '-RC') || contains(github.ref, '-rc') ) | ||
# uses: snapcore/action-publish@v1 | ||
# with: | ||
# store_login: ${{ secrets.STORE_LOGIN }} | ||
# snap: ${{ steps.build.outputs.snap }} | ||
# release: candidate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters