Skip to content

Commit 8900c37

Browse files
committed
ci: add cd of image
1 parent e012338 commit 8900c37

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.github/workflows/docker.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: docker
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
build-push-opencode:
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: opencode.de
12+
url: https://gitlab.opencode.de/groups/dataport/terminfinder/-/container_registries
13+
permissions:
14+
packages: write
15+
contents: read
16+
attestations: write
17+
id-token: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: docker/login-action@v3
21+
with:
22+
registry: registry.opencode.de
23+
username: access-token
24+
password: ${{ secrets.OPENCODE_DOCKER_ACCESS_TOKEN }}
25+
- uses: docker/[email protected]
26+
with:
27+
context: .
28+
push: true
29+
tags: registry.opencode.de/dataport/terminfinder/terminfinder-frontend:${{ github.ref }}

.github/workflows/node.js.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js
1+
name: node-js
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
lint_audit:
10+
lint-audit:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
@@ -38,3 +38,14 @@ jobs:
3838
with:
3939
start: npm run http-server
4040
command: npm run ci-cypress
41+
42+
create-release:
43+
runs-on: ubuntu-latest
44+
if: github.ref_name == 'main'
45+
needs: [ lint-audit, e2e ]
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: cperezabo/[email protected]
49+
- run: gh api --method POST /repos/dataport/terminfinder-frontend/releases -f "tag_name=$(git mkver next --format '{Docker}')" -F "generate_release_notes=true"
50+
env:
51+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)