-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added workflow
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
|
||
push_to_registry: | ||
name: Build and push Docker images to Docker Hub | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push Buster Docker image | ||
uses: docker/[email protected] | ||
with: | ||
build-args: "debian_release=buster" | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: "midwan/amiberry-debian-armhf:buster" | ||
|
||
- name: Build and push Bullseye Docker image | ||
uses: docker/[email protected] | ||
with: | ||
build-args: "debian_release=bullseye" | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: "midwan/amiberry-debian-armhf:bullseye" | ||
|
||
- name: Build and push Bookworm Docker image | ||
uses: docker/[email protected] | ||
with: | ||
build-args: "debian_release=bookworm" | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: "midwan/amiberry-debian-armhf:bookworm, midwan/amiberry-debian-armhf:latest" |