Create main.yml
This commit is contained in:
parent
f7ea57eb29
commit
2126d46a72
29
.github/workflows/main.yml
vendored
Normal file
29
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CI
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- github-actions
|
||||
schedule:
|
||||
- cron: 30 18 * * *
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
create-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
|
||||
- name: Login to Dockerhub
|
||||
run: echo ${{secrets.DOCKERHUB_PASSWORD}} | docker login -u ${{secrets.DOCKERHUB_USER}} --password-stdin
|
||||
|
||||
- name: Build the image
|
||||
run: docker build -t ${{secrets.DOCKERHUB_USER}}/debian-devscripts .
|
||||
|
||||
- name: Upload image
|
||||
run: docker push ${{secrets.DOCKERHUB_USER}}/debian-devscripts
|
Loading…
Reference in New Issue
Block a user