Skip to content

Commit

Permalink
Merge pull request #92 from ryo-arima/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ryo-arima authored Sep 8, 2024
2 parents 6b4e88f + 9682bb4 commit d93a83a
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/release-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: RELEASE IMAGE

on:
workflow_dispatch:
inputs:
name:
description: ""
required: true
default: "release-image"

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
8 changes: 8 additions & 0 deletions tool/docker/arm-rocky.dockerfile
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" ]
8 changes: 8 additions & 0 deletions tool/docker/arm-ubuntu.dockerfile
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" ]
8 changes: 8 additions & 0 deletions tool/docker/base-rocky.dockerfile
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" ]
8 changes: 8 additions & 0 deletions tool/docker/base-ubuntu.dockerfile
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" ]

0 comments on commit d93a83a

Please sign in to comment.