|
23 | 23 | username: ${{ secrets.DOCKER_USERNAME }} |
24 | 24 | password: ${{ secrets.DOCKER_PASSWORD }} |
25 | 25 |
|
| 26 | + - name: Log in to the Container registry |
| 27 | + uses: docker/login-action@v2 |
| 28 | + with: |
| 29 | + registry: ghcr.io |
| 30 | + username: ${{ github.actor }} |
| 31 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 32 | + |
26 | 33 | - name: Extract version number |
27 | 34 | id: get_version |
28 | 35 | run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV |
|
44 | 51 | tags: | |
45 | 52 | davidecavestro/gphotos-cdp:dev-main |
46 | 53 | davidecavestro/gphotos-cdp:${{ github.sha }} |
| 54 | + ghcr.io/davidecavestro/gphotos-cdp:dev-main |
| 55 | + ghcr.io/davidecavestro/gphotos-cdp:${{ github.sha }} |
47 | 56 | cache-from: type=local,src=/tmp/.buildx-cache |
48 | 57 | cache-to: type=local,dest=/tmp/.buildx-cache |
49 | 58 | if: github.ref == 'refs/heads/main' |
|
56 | 65 | tags: | |
57 | 66 | davidecavestro/gphotos-cdp:${{ env.VERSION }} |
58 | 67 | davidecavestro/gphotos-cdp:latest |
| 68 | + ghcr.io/davidecavestro/gphotos-cdp:${{ env.VERSION }} |
| 69 | + ghcr.io/davidecavestro/gphotos-cdp:latest |
59 | 70 | if: startsWith(github.ref, 'refs/tags/') |
60 | 71 |
|
61 | 72 | create-release: |
|
85 | 96 | release_name: v${{ github.ref_name }} |
86 | 97 | body: | |
87 | 98 | This release provides the container image: |
88 | | - `ghcr.io/davidecavestro/gphotos-cdp:${{ github.ref_name }}` |
| 99 | + `davidecavestro/gphotos-cdp:${{ github.ref_name }}` |
89 | 100 | ${{ steps.changelog.outputs.changes }} |
90 | 101 | draft: false |
91 | 102 | prerelease: false |
|
0 commit comments