Skip to content

Commit

Permalink
Add auto build on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
norseto committed Nov 5, 2023
1 parent 39a849e commit 24c8520
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build and Push Images

on:
push:
tags:
- 'v*'

jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: tag
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: make docker-buildx PLATFORMS=linux/arm64,linux/amd64 IMG=norseto/taint-remover:${{ steps.tag.outputs.VERSION }}

0 comments on commit 24c8520

Please sign in to comment.