forked from comit-network/xmr-btc-swap
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'comit-network:master' into master
- Loading branch information
Showing
6 changed files
with
62 additions
and
87 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -4,9 +4,6 @@ on: | |
release: | ||
types: [created] | ||
|
||
env: | ||
DOCKER_IMAGE_NAME: unstoppableswap/asb | ||
|
||
jobs: | ||
build_binaries: | ||
name: Build | ||
|
@@ -85,7 +82,7 @@ jobs: | |
run: target/${{ matrix.target }}/release/${{ matrix.bin }} --help | ||
|
||
- id: create-archive-name | ||
shell: python | ||
shell: python # Use python to have a prettier name for the archive on Windows. | ||
run: | | ||
import platform | ||
os_info = platform.uname() | ||
|
@@ -125,51 +122,3 @@ jobs: | |
asset_path: ./${{ steps.create-archive-name.outputs.archive }} | ||
asset_name: ${{ steps.create-archive-name.outputs.archive }} | ||
asset_content_type: application/gzip | ||
|
||
build_and_push_docker: | ||
name: Build and Push Docker Image | ||
runs-on: ubuntu-latest | ||
needs: build_binaries | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.event.release.target_commitish }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Set Docker tags | ||
id: docker_tags | ||
run: | | ||
if [[ ${{ github.event.release.tag_name }} == "preview" ]]; then | ||
echo "::set-output name=preview::true" | ||
else | ||
echo "::set-output name=preview::false" | ||
fi | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: | | ||
${{ env.DOCKER_IMAGE_NAME }}:${{ github.event.release.tag_name }} | ||
${{ env.DOCKER_IMAGE_NAME }}:latest | ||
if: steps.docker_tags.outputs.preview == 'false' | ||
|
||
- name: Build and push Docker image without latest tag (preview release) | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ env.DOCKER_IMAGE_NAME }}:${{ github.event.release.tag_name }} | ||
if: steps.docker_tags.outputs.preview == 'true' |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "swap" | ||
version = "0.13.3" | ||
version = "0.13.4" | ||
authors = [ "The COMIT guys <[email protected]>" ] | ||
edition = "2021" | ||
description = "XMR/BTC trustless atomic swaps." | ||
|
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