Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Commit 543e5dd

Browse files
author
Steven Weingärtner
committed
fix: add docker build to github actions
1 parent 6a57a62 commit 543e5dd

File tree

2 files changed

+15
-34
lines changed

2 files changed

+15
-34
lines changed

.github/workflows/build-docker.yml

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

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,20 @@ jobs:
2222
run: npm i
2323

2424
- name: Release
25-
id: create-release
25+
id: semantic_release
26+
uses: docker://codfish/semantic-release-action:latest
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
run: npm run release
29+
30+
- name: Log in to Docker Hub
31+
uses: docker/login-action@v1
32+
with:
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_PASSWORD }}
35+
36+
- name: Build and push Docker image
37+
uses: docker/build-push-action@v2
38+
with:
39+
context: .
40+
push: true
41+
tags: ${{ steps.semantic.outputs.new_release_version }},latest

0 commit comments

Comments
 (0)