Create publish-esp-idf-rust-image.yml

Register GitHub Action on main branch
This commit is contained in:
Juraj Michálek 2021-06-25 12:26:54 +02:00 committed by GitHub
parent a0641abd8c
commit e60f4776cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -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