Skip to content

Commit 8d239cf

Browse files
authored
Merge pull request #45 from jkafader-esnet/master
Build and Push PerfSONAR Testpoint for ARM64 (Rasp Pi etc) targets
2 parents 4b0ac1e + 9ad3424 commit 8d239cf

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Diff for: .github/workflows/dockerhub-arm64-push.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Dockerhub Push
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the "master" branch
6+
push:
7+
branches: [ "master" ]
8+
pull_request:
9+
branches: [ "master" ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
build:
18+
# The type of runner that the job will run on
19+
runs-on: ubuntu-latest
20+
21+
# Steps represent a sequence of tasks that will be executed as part of the job
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Setup QEMU
26+
uses: docker/setup-qemu-action@v3
27+
28+
- name: Setup Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
31+
- name: Build the Docker image for arm64 platforms
32+
run: docker buildx build . --file Dockerfile --tag perfsonar-testpoint-arm64:$(date +%s) --platform linux/arm/v7
33+
34+
- name: Publish to Docker Hub
35+
uses: docker/build-push-action@v1
36+
with:
37+
username: ${{ secrets.DOCKER_USERNAME }}
38+
password: ${{ secrets.DOCKER_PASSWORD }}
39+
repository: cs1867/git-testpoint
40+
tags: latest

0 commit comments

Comments
 (0)