Skip to content

Commit

Permalink
Added branch image push.
Browse files Browse the repository at this point in the history
  • Loading branch information
shajen committed Oct 6, 2023
1 parent 3ad52da commit 49e4160
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ jobs:
docker build -t sdr-scanner .
- name: Test sdr-scanner
run: docker run --rm sdr-scanner-test
- name: Deploy sdr-scanner
- name: Deploy sdr-scanner branch
if: github.ref_type == 'branch' && github.event_name != 'pull_request'
run: |
TAG=${GITHUB_REF_NAME}
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} docker.io
docker buildx create --use || true
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t docker.io/shajen/sdr-scanner:$TAG --push .
- name: Deploy sdr-scanner tag
if: github.ref_type == 'tag'
run: |
TAG=${GITHUB_REF_NAME/v/}
Expand Down

0 comments on commit 49e4160

Please sign in to comment.