Skip to content

Commit

Permalink
Fixed image name
Browse files Browse the repository at this point in the history
  • Loading branch information
aSouchereau committed Oct 26, 2023
1 parent 166429f commit 96b15b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dockerhub-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [ "main" ]

env:
IMAGE_NAME: asouchereau/vaultwarden-backup-gfs


jobs:
Expand All @@ -24,7 +26,7 @@ jobs:
echo "Version: $VERSION"
- name: Build and tag image
run: docker build -t ${{ github.repository }}:$VERSION .
run: docker build -t $IMAGE:$VERSION .

- name: Push image to Docker Hub
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.repository }} --all-tags
- name: Push image to GHCR
run: docker push $IMAGE --all-tags
8 changes: 6 additions & 2 deletions .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
branches:
- main

env:
REGISTRY: ghcr.io
IMAGE_NAME: asouchereau/vaultwarden-backup-gfs

jobs:
push_to_ghcr:
runs-on: ubuntu-latest
Expand All @@ -21,7 +25,7 @@ jobs:
echo "Version: $VERSION"
- name: Build and tag image
run: docker build -t ghcr.io/${{ github.repository }}:$VERSION .
run: docker build -t $REGISTRY/$IMAGE:$VERSION .

- name: Push image to GHCR
run: docker push ghcr.io/${{ github.repository }} --all-tags
run: docker push $REGISTRY/$IMAGE --all-tags

0 comments on commit 96b15b4

Please sign in to comment.