Skip to content

Commit 65294fa

Browse files
committed
nightly test
1 parent f160566 commit 65294fa

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: build and push nightly image
2+
3+
on:
4+
push:
5+
branches:
6+
#- master
7+
- "cleot/**"
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
env:
14+
IMAGE_NAME: "bcr-wdc-dashboard-ui"
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
packages: write
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
26+
27+
- name: Login to GHCR
28+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
29+
with:
30+
registry: ghcr.io
31+
username: ${{ github.repository_owner }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Set up Docker Buildx
35+
id: buildx
36+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
37+
38+
- id: meta
39+
name: Metadata
40+
uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
41+
with:
42+
images: |
43+
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
44+
tags: |
45+
type=raw,value=nightly
46+
type=sha
47+
48+
- id: push
49+
name: Build & push ${{ env.IMAGE_NAME }}
50+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
51+
with:
52+
context: .
53+
file: ./Dockerfile
54+
push: true
55+
tags: ${{ steps.meta.outputs.tags }}
56+
labels: ${{ steps.meta.outputs.labels }}
57+
cache-from: type=gha,scope=${{ github.repository }}/${{ env.IMAGE_NAME }}
58+
cache-to: type=gha,mode=max,scope=${{ github.repository }}/${{ env.IMAGE_NAME }}

0 commit comments

Comments
 (0)