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

Commit d8876de

Browse files
committed
Add docker image build workflow
Signed-off-by: Olivier Vernin <olivier.vernin@suse.com>
1 parent 27835c7 commit d8876de

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
docker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v2
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v2
17+
#- name: Login to Docker Hub
18+
# uses: docker/login-action@v2
19+
# with:
20+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
21+
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
22+
- name: Login to GitHub Docker Registry
23+
uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.repository_owner }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
#- name: Build and push
29+
# uses: docker/build-push-action@v3
30+
# with:
31+
# context: .
32+
# platforms: linux/amd64,linux/arm64
33+
# push: true
34+
# tags: updatecli/updatemonitor-ui:${{ github.event.release.tag_name }}
35+
- name: Build and push on ghcr.io
36+
uses: docker/build-push-action@v3
37+
with:
38+
context: .
39+
platforms: linux/amd64,linux/arm64
40+
push: true
41+
tags: ghcr.io/updatecli/updatemonitor-ui:${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)