Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ jobs:
with:
tool: cross

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Container registry
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Binaries
run: |
cross build --release --target x86_64-unknown-linux-gnu --features cross
Expand All @@ -41,17 +52,6 @@ jobs:
cp target/aarch64-unknown-linux-gnu/release/rustpbx bin/arm64/
cp target/aarch64-unknown-linux-gnu/release/sipflow bin/arm64/

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Container registry
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
Expand Down