Skip to content

Commit a81836b

Browse files
authored
Create main.yml
1 parent 77a3337 commit a81836b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/main.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ master ]
10+
tags: [ '*' ]
11+
pull_request:
12+
branches: [ master ]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# A workflow run is made up of one or more jobs that can run sequentially or in parallelname: ci
18+
19+
jobs:
20+
docker:
21+
runs-on: ubuntu-latest
22+
steps:
23+
-
24+
name: Set up QEMU
25+
uses: docker/setup-qemu-action@v1
26+
-
27+
name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v1
29+
-
30+
name: Docker meta
31+
id: meta
32+
uses: docker/metadata-action@v3
33+
with:
34+
images: hyperflowwms/hyperflow
35+
tags: |
36+
type=semver,pattern={{raw}}
37+
-
38+
name: Login to DockerHub
39+
uses: docker/login-action@v1
40+
with:
41+
username: ${{ secrets.DOCKERHUB_USERNAME }}
42+
password: ${{ secrets.DOCKERHUB_TOKEN }}
43+
-
44+
name: Build and push
45+
id: docker_build
46+
uses: docker/build-push-action@v2
47+
with:
48+
push: true
49+
tags: ${{ steps.meta.outputs.tags }}
50+
labels: ${{ steps.meta.outputs.labels }}
51+
-
52+
name: Image digest
53+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)