Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sule01u committed Nov 13, 2023
1 parent 4085ddf commit 12108f8
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,28 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push focal
id: docker_build_push_focal
- name: Get latest tag
run: echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/sbscan:${{ steps.get_version.outputs.VERSION }}
${{ secrets.DOCKERHUB_USERNAME }}/sbscan:${{ env.LATEST_TAG }}
${{ secrets.DOCKERHUB_USERNAME }}/sbscan:latest

0 comments on commit 12108f8

Please sign in to comment.