Skip to content

Commit 4f4826b

Browse files
committed
Workflow
1 parent ca77e16 commit 4f4826b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags: [ '*' ]
7+
workflow_dispatch:
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Get the reference
14+
id: get_version
15+
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
16+
- name: Set up Docker Buildx
17+
id: buildx
18+
uses: docker/setup-buildx-action@v1
19+
- name: Login to registry
20+
uses: docker/login-action@v1
21+
with:
22+
registry: quay.io
23+
username: ${{ secrets.DOCKER_USERNAME }}
24+
password: ${{ secrets.DOCKER_PASSWORD }}
25+
- name: Build
26+
run: |
27+
docker build -t quay.io/leonardo_cecchi/webtest:${{ steps.get_version.outputs.VERSION }} .
28+
- name: Push
29+
run: docker push quay.io/leonardo_cecchi/webtest:${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)