add tag only
This commit is contained in:
parent
c601b96fd2
commit
d21cc5e7ae
@ -12,16 +12,19 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ startsWith(gitea.ref, 'refs/tags/v') }}
|
||||
steps:
|
||||
- uses: https://gitea.okami101.io/okami101/actions/docker@main
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: ${{ vars.CONTAINER_REGISTRY }}/${{ gitea.repository }}
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.CONTAINER_REGISTRY }}
|
||||
username: test
|
||||
password: test
|
||||
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.password }}
|
||||
- name: Push tags
|
||||
shell: bash
|
||||
if: ${{ startsWith(gitea.ref, 'refs/tags/v') }}
|
||||
env:
|
||||
DOCKER_IMAGE: ${{ inputs.registry }}/${{ gitea.repository }}
|
||||
DOCKER_IMAGE: ${{ vars.CONTAINER_REGISTRY }}/${{ gitea.repository }}
|
||||
run: |
|
||||
docker tag $DOCKER_IMAGE:main $DOCKER_IMAGE:latest
|
||||
docker tag $DOCKER_IMAGE:main $DOCKER_IMAGE:${{ steps.meta.outputs.version }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user