From 4a13a268699c1ee17b0c62478d60def929ee910d Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 31 Aug 2020 20:52:50 -0400 Subject: [PATCH] Buildx latest on master branch changes --- .github/workflows/buildx-latest.yml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/buildx-latest.yml diff --git a/.github/workflows/buildx-latest.yml b/.github/workflows/buildx-latest.yml new file mode 100644 index 0000000..bccaf86 --- /dev/null +++ b/.github/workflows/buildx-latest.yml @@ -0,0 +1,39 @@ +name: Buildx latest +on: + release: + types: [published] + paths-ignore: + - .github/workflows/build.yml + - .github/workflows/buildx-branch.yml + - .github/workflows/buildx-release.yml + - .github/workflows/dockerhub-description.yml + - .github/workflows/rust.yml + - extra + - _config.yml + - .gitignore + - .rustfmt.toml + - .gitignore + - example.json + - LICENSE + - README.md +jobs: + buildx: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Buildx setup + uses: crazy-max/ghaction-docker-buildx@v1 + - name: Dockerhub login + run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u mindflavor --password-stdin 2>&1 + - name: Run Buildx + run: | + docker buildx build \ + --progress plain \ + --platform=linux/amd64,linux/386 \ + --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ + --build-arg COMMIT=`git rev-parse --short HEAD` \ + --build-arg VERSION=latest \ + -t mindflavor/prometheus-wireguard-exporter:latest \ + --push \ + . + - run: curl -X POST https://hooks.microbadger.com/images/mindflavor/prometheus-wireguard-exporter/TODO || exit 0