File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish Docker image
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ push_to_registries :
9+ name : Push Docker image to multiple registries
10+ runs-on : ubuntu-latest
11+ permissions :
12+ packages : write
13+ contents : read
14+ steps :
15+ - name : Check out the repo
16+ uses : actions/checkout@v2
17+
18+ - name : Log in to Docker Hub
19+ uses : docker/login-action@v1
20+ with :
21+ username : ${{ secrets.DOCKER_USERNAME }}
22+ password : ${{ secrets.DOCKER_PASSWORD }}
23+
24+ - name : Log in to the Container registry
25+ uses : docker/login-action@v1
26+ with :
27+ registry : ghcr.io
28+ username : ${{ github.actor }}
29+ password : ${{ secrets.GITHUB_TOKEN }}
30+
31+ - name : Extract metadata (tags, labels) for Docker
32+ id : meta
33+ uses : docker/metadata-action@v3
34+ with :
35+ images : |
36+ wallabag/wallabag
37+ ghcr.io/${{ github.repository }}
38+
39+ - name : Build and push Docker images
40+ uses : docker/build-push-action@v2
41+ with :
42+ context : .
43+ push : true
44+ tags : ${{ steps.meta.outputs.tags }}
45+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments