File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments