Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane committed Apr 12, 2024
1 parent 2404fff commit 54e606a
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker-image-ci-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: docker-image-ci-7

on:
push:
branches:
- main
paths:
- .github/workflows/docker-image-ci-7.yml
- 7/Dockerfile

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: 7/Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/centos:7
32 changes: 32 additions & 0 deletions .github/workflows/docker-image-ci-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: docker-image-ci-8

on:
push:
branches:
- main
paths:
- .github/workflows/docker-image-ci-8.yml
- 8/Dockerfile

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
file: 8/Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/centos:8

0 comments on commit 54e606a

Please sign in to comment.