Skip to content

Commit

Permalink
Merge pull request #48 from Thorfusion/maggi373-githubactiondockerpus
Browse files Browse the repository at this point in the history
Create docker-image.yml
  • Loading branch information
maggi373 authored May 22, 2024
2 parents 6eee53f + 1d596c9 commit 50a89a9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
schedule:
- cron: '0 12 * * 2'

jobs:
push_to_registry:
name: push docker image to hub
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4

- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}

- name: build and push docker image to registry
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: thorfusion/solderpy:latest

0 comments on commit 50a89a9

Please sign in to comment.