Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit b4aa324

Browse files
committed
feat: push docker image from ci
limitations: currently only tags as latest
1 parent 3122d60 commit b4aa324

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ on:
66
branches: [ master, alpha, beta ]
77

88
jobs:
9+
docker-push:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Configure Docker Buildx
13+
uses: docker/setup-buildx-action@v1
14+
15+
- name: Login to DockerHub
16+
uses: docker/login-action@v1
17+
with:
18+
username: ${{ secrets.DOCKER_USERNAME }}
19+
password: ${{ secrets.DOCKER_TOKEN }}
20+
21+
- name: Build and push
22+
id: docker_build
23+
uses: docker/build-push-action@v2
24+
with:
25+
push: true
26+
# TODO(3): tag docker image with release version number
27+
tags: hamroctopus/typescript-tools:latest
28+
929
build-linux-gnu:
1030
runs-on: ubuntu-latest
1131
steps:

0 commit comments

Comments
 (0)