Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
on:
pull_request:
branches:
- main
- dex-tutorial
push:
branches:
- main
- dex-tutorial

name: Continuous integration

Expand Down
37 changes: 1 addition & 36 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Workflow inspired by https://docs.github.com/en/actions/publishing-packages/publishing-docker-images

# I'm choosing to publish on github container registry as opposed to docker hub for two reasons
# 1. It feels less official and these containers are not yet ready for production
# 2. It doesn't require setting up a docker hub account or encrypting secrets.

name: Create and publish a Docker image

on:
push:
branches:
# TODO consider enabling for dex tutorial solution
- main
tags:
- '**'
Expand Down Expand Up @@ -48,35 +45,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-and-push-wallet-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-wallet

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
file: ./wallet/Dockerfile
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 7 additions & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Check Markdown Links

on: [push]
on:
pull_request:
branches:
- dex-tutorial
push:
branches:
- dex-tutorial

jobs:
markdown-link-check:
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/rustdocs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN cargo build --locked --release
# Alpine does't work as explained https://stackoverflow.com/a/66974607/4184410
# Also, surprisingly, `ubuntu:latest` doesn't work and leads to "OS can't spawn worker thread: Operation not permitted"
FROM docker.io/library/ubuntu:20.04
LABEL description="Tuxedo Node Template"
LABEL description="Tuxedo Order Book Dex Tutorial"

COPY --from=builder /node-template/target/release/node-template /usr/local/bin

Expand Down