mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-14 19:01:03 +01:00
ci: no docker login for dependabot
This commit is contained in:
12
.github/workflows/ci_docker.yml
vendored
12
.github/workflows/ci_docker.yml
vendored
@@ -58,12 +58,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Github Packages
|
- name: Login to Github Packages
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -87,7 +89,7 @@ jobs:
|
|||||||
ghcr.io/scito/extract_otp_secrets:latest
|
ghcr.io/scito/extract_otp_secrets:latest
|
||||||
ghcr.io/scito/extract_otp_secrets:bullseye
|
ghcr.io/scito/extract_otp_secrets:bullseye
|
||||||
# build on feature branches, push only on master branch
|
# build on feature branches, push only on master branch
|
||||||
push: ${{ github.ref == 'refs/heads/master' }}
|
push: ${{ github.ref == 'refs/heads/master' && github.secret_source == 'Actions'}}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
# TODO upload digests to assets
|
# TODO upload digests to assets
|
||||||
@@ -130,12 +132,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Github Packages
|
- name: Login to Github Packages
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -158,7 +162,7 @@ jobs:
|
|||||||
ghcr.io/scito/extract_otp_secrets:only-txt
|
ghcr.io/scito/extract_otp_secrets:only-txt
|
||||||
ghcr.io/scito/extract_otp_secrets:alpine
|
ghcr.io/scito/extract_otp_secrets:alpine
|
||||||
# build on feature branches, push only on master branch
|
# build on feature branches, push only on master branch
|
||||||
push: ${{ github.ref == 'refs/heads/master' }}
|
push: ${{ github.ref == 'refs/heads/master' && github.secret_source == 'Actions'}}
|
||||||
build-args: |
|
build-args: |
|
||||||
RUN_TESTS=true
|
RUN_TESTS=true
|
||||||
|
|
||||||
@@ -209,12 +213,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Github Packages
|
- name: Login to Github Packages
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -237,7 +243,7 @@ jobs:
|
|||||||
pull: true
|
pull: true
|
||||||
tags: |
|
tags: |
|
||||||
scit0/extract_otp_secrets:buster
|
scit0/extract_otp_secrets:buster
|
||||||
push: true
|
push: ${{ github.secret_source == 'Actions' }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
# TODO upload digests to assets
|
# TODO upload digests to assets
|
||||||
|
|||||||
2
.github/workflows/ci_release.yml
vendored
2
.github/workflows/ci_release.yml
vendored
@@ -137,12 +137,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Github Packages
|
- name: Login to Github Packages
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: github.secret_source == 'Actions'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
|
|||||||
Reference in New Issue
Block a user