Create publish-esp-idf-rust-image.yml
Register GitHub Action on main branch
This commit is contained in:
parent
a0641abd8c
commit
e60f4776cb
|
|
@ -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
|
||||
Loading…
Reference in New Issue