Skip to content

Commit

Permalink
Use correct credentials to push images
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Belouin <[email protected]>
  • Loading branch information
diconico07 committed Oct 27, 2023
1 parent c316fd7 commit e1ca446
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-onvif-video-broker-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
if: github.event_name == 'push' || github.event_name == 'release'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.crUsername }}
password: ${{ secrets.crPassword }}

- name: Build and push
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-opcua-monitoring-broker-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
if: github.event_name == 'push' || github.event_name == 'release'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.crUsername }}
password: ${{ secrets.crPassword }}

- name: Docker meta
uses: docker/metadata-action@v5
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-opencv-base-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
if: github.event_name == 'push' || github.event_name == 'release'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.crUsername }}
password: ${{ secrets.crPassword }}

- name: Docker meta
uses: docker/metadata-action@v5
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build-python-app-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches: [ main ]
paths:
- .github/workflows/build-python-app-container.yml
- .github/workflows/build-python-app-containers.yml
- build/containers/Dockerfile.python-app
- samples/apps/**
- version.txt
pull_request:
branches: [ main ]
paths:
- .github/workflows/build-python-app-container.yml
- .github/workflows/build-python-app-containers.yml
- build/containers/Dockerfile.python-app
- samples/apps/**
- version.txt
Expand Down Expand Up @@ -47,11 +47,12 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
if: github.event_name == 'push' || github.event_name == 'release'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.crUsername }}
password: ${{ secrets.crPassword }}

- name: Docker meta
uses: docker/metadata-action@v5
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/build-rust-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main ]
paths:
- .github/workflows/build-rust-code.yml
- .github/workflows/build-rust-containers.yml
- build/containers/Dockerfile.rust
- '**.rs'
- '**/Cargo.toml'
Expand All @@ -13,7 +13,7 @@ on:
pull_request:
branches: [ main ]
paths:
- .github/workflows/build-rust-code.yml
- .github/workflows/build-rust-containers.yml
- build/containers/Dockerfile.rust
- '**.rs'
- '**/Cargo.toml'
Expand Down Expand Up @@ -60,11 +60,12 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
if: github.event_name == 'push' || github.event_name == 'release'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.crUsername }}
password: ${{ secrets.crPassword }}

- name: Docker meta
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -138,6 +139,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.crUsername }}
password: ${{ secrets.crPassword }}

- name: Docker meta
uses: docker/metadata-action@v5
id: meta
Expand Down

0 comments on commit e1ca446

Please sign in to comment.