Skip to content

Commit

Permalink
ci(docker): set "Docker Push" gh action environment (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mflendrich authored Jun 11, 2021
1 parent 6c7149e commit 43797ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/1x-docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
docker:
environment: 'Docker Push'
runs-on: ubuntu-latest
steps:
- name: Parse semver string
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/2x-docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
docker:
environment: 'Docker Push'
runs-on: ubuntu-latest
steps:
- name: Parse semver string
Expand Down Expand Up @@ -43,7 +44,7 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
Expand Down

0 comments on commit 43797ff

Please sign in to comment.