-
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.
- Loading branch information
Ryo Arima
committed
Sep 8, 2024
1 parent
78b067d
commit 79f80fe
Showing
5 changed files
with
108 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,76 @@ | ||
name: UPDATE README | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: "" | ||
required: true | ||
default: "update-readme" | ||
|
||
jobs: | ||
ubuntu-base-mark1: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Log in to DockerHub | ||
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build and push Docker image | ||
run: | | ||
docker build -f tool/docker/base-ubuntu.dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/ubuntu-base-mark1:latest . | ||
docker push ${{ secrets.DOCKERHUB_USERNAME }}/ubuntu-base-mark1:latest | ||
- name: Log out from DockerHub | ||
run: docker logout | ||
|
||
rocky-base-mark1: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Log in to DockerHub | ||
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build and push Docker image | ||
run: | | ||
docker build -f tool/docker/base-rocky.dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/rocky-base-mark1:latest . | ||
docker push ${{ secrets.DOCKERHUB_USERNAME }}/rocky-base-mark1:latest | ||
- name: Log out from DockerHub | ||
run: docker logout | ||
|
||
rocky-arm-mark1: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: arm64 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Check out the code | ||
uses: actions/checkout@v4 | ||
- name: Build ARM PKG on container | ||
run: | | ||
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin | ||
docker build --platform linux/arm64 -f tool/docker/arm-rocky.dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/rocky-arm-mark1:latest . | ||
docker push ${{ secrets.DOCKERHUB_USERNAME }}/rocky-arm-mark1:latest | ||
ubuntu-arm-mark1: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: arm64 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Check out the code | ||
uses: actions/checkout@v4 | ||
- name: Build ARM PKG on container | ||
run: | | ||
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin | ||
docker build --platform linux/arm64 -f tool/docker/arm-ubuntu.dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/ubuntu-arm-mark1:latest . | ||
docker push ${{ secrets.DOCKERHUB_USERNAME }}/ubuntu-arm-mark1:latest |
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,8 @@ | ||
FROM ryoarima/rocky-arm:latest | ||
|
||
WORKDIR /root | ||
|
||
RUN wget https://github.com/ryo-arima/mark1/releases/download/v0.0.1/mark1-0.0.1-aarch64.aarch64.rpm && \ | ||
rpm -ivh mark1-0.0.1-aarch64.aarch64.rpm | ||
|
||
CMD [ "echo", "This is mark1" ] |
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,8 @@ | ||
FROM ryoarima/ubuntu-arm:latest | ||
|
||
WORKDIR /root | ||
|
||
RUN wget https://github.com/ryo-arima/mark1/releases/download/v0.0.1/mark1_0.0.1_arm64.deb && \ | ||
dpkg -i mark1_0.0.1_arm64.deb | ||
|
||
CMD [ "echo", "This is mark1" ] |
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,8 @@ | ||
FROM ryoarima/rocky-base:latest | ||
|
||
WORKDIR /root | ||
|
||
RUN wget https://github.com/ryo-arima/mark1/releases/download/v0.0.1/mark1-0.0.1-x86_64.x86_64.rpm && \ | ||
rpm -ivh mark1-0.0.1-x86_64.x86_64.rpm | ||
|
||
CMD [ "echo", "This is mark1" ] |
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,8 @@ | ||
FROM ryoarima/ubuntu-base:latest | ||
|
||
WORKDIR /root | ||
|
||
RUN wget https://github.com/ryo-arima/mark1/releases/download/v0.0.1/mark1_0.0.1_amd64.deb && \ | ||
dpkg -i mark1_0.0.1_amd64.deb | ||
|
||
CMD [ "echo", "This is mark1" ] |