Skip to content

Commit

Permalink
chore(workflows): prepared workflows for release, removed invalid parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Brunkow Moser committed Jun 28, 2024
1 parent 99e6262 commit c03d224
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ name: "Publish Digital Product Pass Verification Simple Wallet Docker Image"

on:
push:
branches: [ "main", "develop", "feature/simple-wallet" ]
branches: [ "main", "develop" ]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
Expand All @@ -44,14 +44,12 @@ on:

env:
IMAGE_NAME: 'digital-product-pass-verification-wallet'
REGISTRY: 'ghcr.io'
IMAGE_NAMESPACE: 'tractusx'
COMMIT_SHA: ${{ github.sha }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}

jobs:
build-on-docker:
if: github.repository == 'eclipse-tractusx/digital-product-pass'
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down Expand Up @@ -110,52 +108,4 @@ jobs:
password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}

build-on-ghcr:
if: github.repository != 'eclipse-tractusx/digital-product-pass'
runs-on: ubuntu-latest
permissions:
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

# Build actions for GHCR registry
- name: Docker meta
id: meta-for-ghcr
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
# Login against GHCR registry
# https://github.com/docker/login-action
- name: Log into GHCR registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push frontend for GHCR registry
id: build-and-push-frontend-ghcr
uses: docker/build-push-action@v5
with:
context: dpp-verification/simple-wallet
push: true
tags: ${{ steps.meta-for-ghcr.outputs.tags }}, ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta-for-ghcr.outputs.labels }}
build-args: |
REPO_COMMIT_ID=${{ env.COMMIT_SHA }}
REPO_ENDPOINT_URL=${{ env.REPO_URL }}

1 change: 0 additions & 1 deletion dpp-verification/simple-wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4742,7 +4742,6 @@ security:
They keys in the API Keys can be configured dinamically matching the BPNs of the companies that are allowed to used the "Authenticated" APIs from the simple wallet. The api key value sent in the request headers **MUST** be with the same as the defined ones in the configuration for the specific BPNs.
## More information
For more information about the context of the simple wallet consult the main Digital Product Pass Verification Add-on in the following documentation:
Expand Down

0 comments on commit c03d224

Please sign in to comment.