DockerHub
DockerHub
This commit is contained in:
commit
ba2af6ec18
2 changed files with 5 additions and 5 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/hub.yml
vendored
2
.github/workflows/hub.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue