Skip to content

feat: encrypt web wallet (#483) #852

feat: encrypt web wallet (#483)

feat: encrypt web wallet (#483) #852

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Build Docker images
on:
push:
env:
REGISTRY: docker.io
IMAGE_NAME: ${{ github.repository }}
jobs:
generate:
runs-on: ubuntu-latest
outputs:
CALVER: ${{ steps.calculate-calver.outputs.calver }}
REGISTRY: ${{ env.REGISTRY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compute outputs
run: |
echo "REGISTRY=${{ env.REGISTRY }}" >> $GITHUB_OUTPUT
- name: Calculate Calver
id: calculate-calver
run: |
calver=$(date +'%Y.%m.%d')
echo "calver=$calver" >> $GITHUB_ENV
echo "::set-output name=calver::$calver"
build_test_images:
runs-on: ubuntu-latest
needs: generate
strategy:
fail-fast: false
matrix:
include:
- dockerfile: Dockerfile.gatekeeper
tags: |
${{ needs.generate.outputs.REGISTRY }}/keychainmdip/gatekeeper:${{ needs.generate.outputs.CALVER }}
- dockerfile: Dockerfile.keymaster
tags: |
${{ needs.generate.outputs.REGISTRY }}/keychainmdip/keymaster:${{ needs.generate.outputs.CALVER }}
- dockerfile: Dockerfile.hyperswarm
tags: |
${{ needs.generate.outputs.REGISTRY }}/keychainmdip/hyperswarm-mediator:${{ needs.generate.outputs.CALVER }}
- dockerfile: Dockerfile.satoshi
tags: |
${{ needs.generate.outputs.REGISTRY }}/keychainmdip/sat-mediator:${{ needs.generate.outputs.CALVER }}
- dockerfile: Dockerfile.ipfs
tags: |
${{ needs.generate.outputs.REGISTRY }}/keychainmdip/ipfs-mediator:${{ needs.generate.outputs.CALVER }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ needs.generate.outputs.CALVER }}
release
- name: Build Docker images
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.dockerfile }}
push: false
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ matrix.tags }}
- name: Run Anchore vulnerability scanner
uses: anchore/scan-action@v3
with:
image: ${{ matrix.tags }}
fail-build: false
severity-cutoff: critical
output-format: table