diff --git a/.github/workflows/DockerBuildAndPushDev.yml b/.github/workflows/DockerBuildAndPushDev.yml new file mode 100644 index 0000000..bb0f78b --- /dev/null +++ b/.github/workflows/DockerBuildAndPushDev.yml @@ -0,0 +1,44 @@ +name: DockerBuildAndPushDev + +on: + push: + branches: + - '*' + +jobs: + multi: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + # - + # name: Login to DockerHub + # uses: docker/login-action@v1 + # with: + # username: ${{ secrets.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x + push: true + tags: | + ghcr.io/ncareau/netgear-lte-exporter:${{ github.head_ref || github.ref_name }} +# ncareau/netgear-lte-exporter:${{ github.head_ref || github.ref_name }} \ No newline at end of file diff --git a/.github/workflows/DockerBuildAndPush.yml b/.github/workflows/DockerBuildAndPushLatest.yml similarity index 91% rename from .github/workflows/DockerBuildAndPush.yml rename to .github/workflows/DockerBuildAndPushLatest.yml index 6f89740..69ac1e3 100644 --- a/.github/workflows/DockerBuildAndPush.yml +++ b/.github/workflows/DockerBuildAndPushLatest.yml @@ -1,8 +1,9 @@ -name: DockerBuildAndPush +name: DockerBuildAndPushLatest on: push: - branches: main + branches: + - main jobs: multi: