Skip to content

Commit

Permalink
fix: exclude docs and remove unused workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhommen committed Jul 3, 2024
1 parent 8977a75 commit f0c2ecc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 49 deletions.
53 changes: 4 additions & 49 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,7 @@ env:
IMAGE_TAG: ${{ github.event.release.name }}

jobs:
build-and-publish-server:
runs-on: ubuntu-latest
strategy:
matrix:
component: ['app', 'edc']

permissions:
contents: read
packages: write
id-token: write

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

- name: Login to GitHub Container Registry
run: echo $DOCKER_PASSWORD | docker login $REGISTRY -u $DOCKER_USERNAME --password-stdin

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

- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and Push Docker image
run: |
cd logging-house-server/${{ matrix.component }}
docker build -t $REGISTRY/${{ matrix.component }}:$IMAGE_TAG .
docker push $REGISTRY/${{ matrix.component }}:$IMAGE_TAG
with:
context: .
file: ./Dockerfile
push: true
tags: $REGISTRY/${{ matrix.component }}:$IMAGE_TAG
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache


build-and-publish-edc-extension:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -67,12 +23,11 @@ jobs:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Publish
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
uses: gradle/actions/wrapper-validation@v3
- name: Publish
uses: gradle/gradle-build-action@v3
with:
arguments: -Pversion=${{ env.IMAGE_TAG }} publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ github.token }}

3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
paths-ignore:
- docs/
- book.toml

jobs:
release:
Expand Down

0 comments on commit f0c2ecc

Please sign in to comment.