DockerHub

DockerHub
This commit is contained in:
Kroese 2023-04-26 03:40:05 +02:00 committed by GitHub
commit ba2af6ec18
2 changed files with 5 additions and 5 deletions

View file

@ -31,8 +31,8 @@ jobs:
--build-arg "DATE_ARG=${{ github.event.repository.updated_at }}" \
--label "build=${GITHUB_RUN_ID}" \
--label "version=${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \
--tag "${{ github.repository }}:latest" \
--tag "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \
--tag "${{ secrets.DOCKERHUB_REPO }}:latest" \
--tag "${{ secrets.DOCKERHUB_REPO }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" \
--tag "ghcr.io/${{ github.repository }}:latest" \
--tag "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
-
@ -61,8 +61,8 @@ jobs:
-
name: Push to DockerHub
run: |
docker push "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" &&\
docker push "${{ github.repository }}:latest"
docker push "${{ secrets.DOCKERHUB_REPO }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" &&\
docker push "${{ secrets.DOCKERHUB_REPO }}:latest"
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2

View file

@ -18,6 +18,6 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ github.repository }}
repository: ${{ secrets.DOCKERHUB_REPO }}
short-description: ${{ github.event.repository.description }}
readme-filepath: ./readme.md