edit readme #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
build: | |
name: Build containers | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Building images and push to hub | |
run: | | |
docker run --privileged --rm tonistiigi/binfmt --install arm64 | |
docker buildx create --use | |
docker buildx build --tag oxmix/hgls-collector:2 \ | |
--tag oxmix/hgls-collector:latest \ | |
--push --platform linux/amd64,linux/arm64 . |