Skip to content

Commit e6b83de

Browse files
authored
GitHub registry (#314)
* replace docker hub with GitHub registry * fix yml syntax * disable PlanQK service integration test * fix condition, temporarily disable integration tests * fix empty list * temporarily remove test job * reenable integration tests * replace every mention of Dockerhub
1 parent 3ae60bd commit e6b83de

5 files changed

Lines changed: 92 additions & 77 deletions

File tree

.github/workflows/dockerhub.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/dockerhub_stable.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/image.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This workflow will build the Container and push a corresponding Docker image to the GitHub registry
2+
name: Push docker image to the GitHub registry
3+
4+
on:
5+
workflow_run:
6+
workflows:
7+
- Java CI with Maven
8+
branches: [master]
9+
types:
10+
- completed
11+
tags:
12+
- "v*.*.*"
13+
14+
env:
15+
REGISTRY: ghcr.io
16+
IMAGE_NAME: ${{ github.repository }}
17+
18+
jobs:
19+
multi:
20+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v2
27+
- name: Extract metadata (tags, labels) for Docker
28+
id: meta
29+
uses: docker/metadata-action@v4
30+
with:
31+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v2
34+
- name: Login to GitHub registry
35+
uses: docker/login-action@v2
36+
with:
37+
registry: ${{ env.REGISTRY }}
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
- name: Build and push
41+
if: ${{ github.ref == 'refs/heads/master' }}
42+
uses: docker/build-push-action@v4
43+
with:
44+
context: .
45+
platforms: linux/amd64,linux/arm64
46+
push: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/image_stable.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow will build the Container and push a corresponding Docker image to the GitHub registry
2+
name: Push stable docker image to the GitHub registry
3+
4+
on:
5+
push:
6+
tags:
7+
- "v*.*.*"
8+
9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_NAME: ${{ github.repository }}
12+
13+
jobs:
14+
multi:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v2
21+
- name: Extract metadata (tags, labels) for Docker
22+
id: meta
23+
uses: docker/metadata-action@v4
24+
with:
25+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v2
28+
- name: Login to GitHub registry
29+
uses: docker/login-action@v2
30+
with:
31+
registry: ${{ env.REGISTRY }}
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Build and push
36+
uses: docker/build-push-action@v4
37+
with:
38+
context: .
39+
platforms: linux/amd64,linux/arm64
40+
push: true
41+
tags: ${{ steps.meta.outputs.tags }}
42+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
tests:
3636
strategy:
3737
matrix:
38-
test:
38+
test:
3939
- AdaptMultiMyTinyToDoIntegrationTest
4040
- ApacheWebAppIntegrationTest
4141
- ConnectToIntegrationTest
@@ -44,7 +44,7 @@ jobs:
4444
- MyTinyToDoBPMNIntegrationTest
4545
- MyTinyToDoIntegrationTest
4646
#- MyTinyToDoSqlIntegrationTest
47-
- PlanQKServiceIntegrationTest
47+
#- PlanQKServiceIntegrationTest
4848
- QHAnaTest
4949
runs-on: ubuntu-latest
5050
timeout-minutes: 80

0 commit comments

Comments
 (0)