Skip to content

Commit

Permalink
chore: Update Docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TF-chrobiche committed Aug 28, 2024
1 parent 78f5afa commit b2de2ad
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/Build Docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,15 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Log in to Private Registry
uses: docker/login-action@v1
with:
registry: registrydocker.robiche.fr:443
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
run: echo "${{ secrets.REGISTRY_SECRET }}" | docker login ${{ secrets.REGISTRY_URL }} --username unused --password-stdin

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./build
file: ./build/Dockerfile
push: true
tags: registrydocker.robiche.fr:443/rustdesk-api-server:latest
tags: ${{ secrets.REGISTRY_URL }}/rustdesk-api-server:latest

- name: Docker Logout
run: docker logout registrydocker.robiche.fr:443
run: docker logout ${{ secrets.REGISTRY_URL }}

0 comments on commit b2de2ad

Please sign in to comment.