Skip to content

Commit

Permalink
release dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
darioAnongba committed Jan 15, 2025
1 parent c2177bf commit a518929
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 5 deletions.
49 changes: 48 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "v*"

jobs:
release:
release-swissknife:
permissions:
contents: write
id-token: write
Expand Down Expand Up @@ -51,3 +51,50 @@ jobs:
subject-name: docker.io/bitcoinnumeraire/swissknife
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

release-dashboard:
permissions:
contents: write
id-token: write
attestations: write

runs-on: ubuntu-latest

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: bitcoinnumeraire/swissknife-dashboard

- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: ./dashboard
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: docker.io/bitcoinnumeraire/swissknife-dashboard
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "swissknife"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
authors = ["Dario Anongba Varela <dario.varela@numeraire.tech>"]
rust-version = "1.79"
Expand Down
1 change: 1 addition & 0 deletions config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ leeway = "60s"

[jwt]
token_expiry = "1h"
secret = "CHANGE_ME"

# Database
[database]
Expand Down
2 changes: 1 addition & 1 deletion migration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "migration"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
publish = false

Expand Down

0 comments on commit a518929

Please sign in to comment.