-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1.32 KB
/
publish-snapshot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Kubernetes Dashboard (SNAPSHOTS)
on:
push:
branches:
- main
jobs:
publish-snapshot-image:
name: Publish YAKD Snapshot
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Package
run: |
mvn -Pbuild-frontend clean package
- name: Docker Hub Login
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build and Push
run: |
docker buildx build \
--push \
--build-arg VERSION=snapshot \
-f src/main/docker/Dockerfile.build \
--tag marcnuri/yakd:snapshot \
--platform linux/amd64,linux/arm64 \
.