Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #220 from planetf1/pkg
Browse files Browse the repository at this point in the history
Updated packaging for multiple connectors
  • Loading branch information
planetf1 authored Nov 3, 2022
2 parents 3f1b9e0 + ca16ab7 commit 96c3cd5
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 220 deletions.
6 changes: 0 additions & 6 deletions .dockerignore

This file was deleted.

8 changes: 0 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,10 @@ updates:
open-pull-requests-limit: 100
reviewers:
- planetf1
- wbittles
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 25
reviewers:
- planetf1
- package-ecosystem: docker
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
reviewers:
- planetf1
49 changes: 1 addition & 48 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
build:
runs-on: ubuntu-latest
name: "Merge"
env:
RELEASE_VERSION: 3.6
steps:
- uses: actions/checkout@v3
- name: Set up JDK
Expand Down Expand Up @@ -49,50 +47,5 @@ jobs:
- name: Upload Connector
uses: actions/upload-artifact@v3
with:
name: Postgres Connector
name: Database Connectors
path: '**/build/libs/*.jar'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.repository == 'odpi/egeria-database-connectors' }}
- name: Login to container registry (Quay.io)
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_ACCESS_TOKEN }}
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.repository == 'odpi/egeria-database-connectors' }}
# For releases (ie not main)
- name: Build and push (not main merge)
if: github.ref != 'refs/heads/main'
id: docker_build_release
uses: docker/build-push-action@v3
with:
push: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.repository == 'odpi/egeria-database-connectors' }}
tags: odpi/egeria-database-connectors:${{env.RELEASE_VERSION}},quay.io/odpi/egeria-database-connectors:${{env.RELEASE_VERSION}}
build-args: version=${{ env.RELEASE_VERSION }}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
# For main code stream
- name: Build and push (main merge)
if: github.ref == 'refs/heads/main'
id: docker_build_main
uses: docker/build-push-action@v3
with:
push: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.repository == 'odpi/egeria-database-connectors' }}
tags: odpi/egeria-database-connectors:${{ env.RELEASE_VERSION}}, odpi/egeria-database-connectors:latest, quay.io/odpi/egeria-database-connectors:${{ env.RELEASE_VERSION}}, quay.io/odpi/egeria-database-connectors:latest
build-args: version=${{ env.RELEASE_VERSION }}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
- name: Image digest (release)
if: github.ref != 'refs/heads/main'
run: echo ${{ steps.docker_build_release.outputs.digest }}
- name: Image digest (main)
if: github.ref == 'refs/heads/main'
run: echo ${{ steps.docker_build_main.outputs.digest }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
- name: Upload Connector
uses: actions/upload-artifact@v3
with:
name: Postgres Connector
name: Database Connectors
path: '**/build/libs/*.jar'
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Upload Connector
uses: actions/upload-artifact@v3
with:
name: Postgres Connector
name: Database Connectors
path: '**/build/libs/*.jar'

41 changes: 0 additions & 41 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit 96c3cd5

Please sign in to comment.