Update README.md #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy linux buildroot docker image | |
on: | |
push: | |
branches: [ "have_orange" ] | |
pull_request: | |
branches: [ "have_orange" ] | |
schedule: | |
- cron: "0 1 * * 1" | |
workflow_dispatch: | |
jobs: | |
Build_and_publish_dahliaOS_buildroot_docker_image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout GitHub Action' | |
uses: actions/checkout@main | |
- name: 'Login to GitHub Container Registry' | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: 'Build Docker Image' | |
run: | | |
docker build . --tag ghcr.io/dahliaos/linux:latest | |
docker run ghcr.io/dahliaos/linux:latest | |
docker push ghcr.io/dahliaos/linux:latest |