-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.06 KB
/
verify.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
41
name: Verify
on:
pull_request:
branches: [main]
workflow_call:
secrets:
STACK_DEPLOY_SSH_PRIVATE_KEY:
required: true
DEPOT_PROJECT_ID:
required: true
DOCKERHUB_USER:
required: true
DOCKERHUB_PASSWORD:
required: true
# Cancel in-progress workflows for the same PR or branch/tag
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Needs to be a superset of what Verify workflow needs
permissions:
contents: read # Clone repo
id-token: write # Depot OIDC
jobs:
build:
timeout-minutes: 10
runs-on: depot-ubuntu-latest-arm
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build
with:
dockerhub-user: ${{ secrets.DOCKERHUB_USER }}
dockerhub-password: ${{ secrets.DOCKERHUB_PASSWORD }}
dockerfile: ./Dockerfile
depot: true
depot-project-id: ${{ secrets.DEPOT_PROJECT_ID }}
context: .
platforms: 'linux/arm64'