Alexander Linder
3 weeks ago
Failed to extract signature
1 changed files with
14 additions and
1 deletions
-
.github/workflows/docker-image.yml
|
|
|
@ -11,6 +11,9 @@ on: |
|
|
|
jobs: |
|
|
|
build_and_push: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
permissions: |
|
|
|
contents: read |
|
|
|
packages: write |
|
|
|
steps: |
|
|
|
- name: Checkout code |
|
|
|
uses: actions/checkout@v4 |
|
|
|
@ -19,7 +22,9 @@ jobs: |
|
|
|
id: meta |
|
|
|
uses: docker/metadata-action@v4 |
|
|
|
with: |
|
|
|
images: ${{ vars.DOCKER_REPOSITORY || 'ghostfolio/ghostfolio' }} |
|
|
|
images: | |
|
|
|
${{ vars.DOCKER_REPOSITORY || 'ghostfolio/ghostfolio' }} |
|
|
|
ghcr.io/${{ github.repository }} |
|
|
|
tags: | |
|
|
|
type=semver,pattern={{major}} |
|
|
|
type=semver,pattern={{version}} |
|
|
|
@ -38,6 +43,14 @@ jobs: |
|
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }} |
|
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |
|
|
|
|
|
|
|
- name: Login to GHCR |
|
|
|
if: github.event_name != 'pull_request' |
|
|
|
uses: docker/login-action@v2 |
|
|
|
with: |
|
|
|
registry: ghcr.io |
|
|
|
username: ${{ github.actor }} |
|
|
|
password: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
- name: Build and push |
|
|
|
uses: docker/build-push-action@v3 |
|
|
|
with: |
|
|
|
|