Skip to content

Commit 6651ff9

Browse files
committed
github/workflows: push to dockerhub on tag
1 parent d0977eb commit 6651ff9

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.github/workflows/docker-push.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: docker-push
2+
on: create
3+
4+
jobs:
5+
build-and-push:
6+
if: github.event.ref_type == 'tag'
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/[email protected]
10+
11+
- name: docker meta
12+
id: meta
13+
uses: docker/[email protected]
14+
with:
15+
images: videodev/video-transcoding-api
16+
tags: |
17+
type=ref,event=branch
18+
type=ref,event=pr
19+
type=semver,pattern={{version}}
20+
type=semver,pattern={{major}}.{{minor}}
21+
type=semver,pattern={{major}}
22+
23+
- name: setup qemu
24+
uses: docker/[email protected]
25+
26+
- name: setup buildx
27+
id: buildx
28+
uses: docker/[email protected]
29+
30+
- name: login to docker hub
31+
uses: docker/[email protected]
32+
with:
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_PASSWORD }}
35+
36+
- name: build and push
37+
uses: docker/[email protected]
38+
with:
39+
context: .
40+
push: true
41+
tags: ${{ steps.meta.outputs.tags }}
42+
labels: ${{ steps.meta.outputs.labels }}
43+
platforms: linux/amd64,linux/arm64

.github/workflows/docker-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
with:
2626
context: .
2727
push: false
28-
tags: fsouza/fake-gcs-server:latest
28+
tags: videodev/video-transcoding-api:latest
2929
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)