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+ permissions :
21+ packages : write
22+ contents : read
23+ attestations : write
24+ id-token : write
25+ steps :
26+ - name : Check out the repo
27+ uses : actions/checkout@v5
28+
29+ - name : Log in to Docker Hub
30+ uses : docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
31+ with :
32+ username : ${{ secrets.DOCKER_USERNAME }}
33+ password : ${{ secrets.DOCKER_PASSWORD }}
34+
35+ - name : Build and push Docker image
36+ id : push
37+ uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
38+ with :
39+ context : .
40+ file : ./Dockerfile
41+ push : true
42+ tags : dvpfig/rebrickable-storage:$(date +%s)
You can’t perform that action at this time.
0 commit comments