From e60f4776cbb1a878a4e548bb7000413c0dd175ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Mich=C3=A1lek?= Date: Fri, 25 Jun 2021 12:26:54 +0200 Subject: [PATCH] Create publish-esp-idf-rust-image.yml Register GitHub Action on main branch --- .../workflows/publish-esp-idf-rust-image.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish-esp-idf-rust-image.yml diff --git a/.github/workflows/publish-esp-idf-rust-image.yml b/.github/workflows/publish-esp-idf-rust-image.yml new file mode 100644 index 0000000..1e1f63a --- /dev/null +++ b/.github/workflows/publish-esp-idf-rust-image.yml @@ -0,0 +1,22 @@ +name: Publish esp-idf-rust image on DockerHub + +on: workflow_dispatch + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + - name: Push to Docker Hub + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: georgikrocks/esp-idf-rust:latest