File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+
6+ # GitHub recommends pinning actions to a commit SHA.
7+ # To get a newer version, you will need to update the SHA.
8+ # You can also reference a tag or branch, but the action may change without warning.
9+
10+ name : Publish Docker image
11+
12+ on :
13+ release :
14+ types : [published]
15+
16+ jobs :
17+ push_to_registry :
18+ name : Push Docker image to Docker Hub
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Check out the repo
22+ uses : actions/checkout@v3
23+
24+ - name : Log in to Docker Hub
25+ uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
26+ with :
27+ username : ${{ secrets.DOCKER_USERNAME }}
28+ password : ${{ secrets.DOCKER_PASSWORD }}
29+
30+ - name : Extract metadata (tags, labels) for Docker
31+ id : meta
32+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
33+ with :
34+ images : paigeadele/docker-solaris
35+
36+ - name : Build and push Docker image
37+ uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
38+ with :
39+ context : .
40+ push : true
41+ tags : ${{ steps.meta.outputs.tags }}
42+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments