mirror of
https://github.com/cupcakearmy/gitea-sync.git
synced 2025-09-05 18:20:42 +00:00
workflow
This commit is contained in:
16
.github/workflows/docker.yaml
vendored
16
.github/workflows/docker.yaml
vendored
@@ -20,7 +20,8 @@ jobs:
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
cupcakearmy/gitea-sync
|
||||
# ghcr.io/${{ github.repository }}
|
||||
# This assumes your repository is also github.com/foo/bar
|
||||
# You could also use ghcr.io/foo/some-package as long as you are the user/org "foo"
|
||||
tags: |
|
||||
@@ -28,12 +29,17 @@ jobs:
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
- name: Log in to the Container registry
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
# - name: Log in to the Container registry
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user