Skip to content

Commit

Permalink
test build push action
Browse files Browse the repository at this point in the history
  • Loading branch information
code-inflation committed Mar 20, 2024
1 parent cf3e176 commit 7020f37
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,24 @@ jobs:
- name: Run CLI
run: cargo run

docker-build:
docker-build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build container image
- name: Log in to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: false
platforms: linux/amd64,linux/arm64
tags: cybuerg/cfspeedtest:ci-build
push: true
platforms: linux/amd64
tags: |
cybuerg/cfspeedtest:${{ github.ref_name }}
cybuerg/cfspeedtest:latest

0 comments on commit 7020f37

Please sign in to comment.