Repository navigation
61 lines (55 loc) · 1.93 KB
/
Copy pathdevcontainer.yaml
File metadata and controls
61 lines (55 loc) · 1.93 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Dev Container
on:
push:
paths:
- ".devcontainer/**"
- "hack/k8s-versions.sh"
- ".github/workflows/devcontainer.yaml"
branches:
- main
pull_request:
paths:
- ".devcontainer/**"
- "hack/k8s-versions.sh"
- ".github/workflows/devcontainer.yaml"
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
env:
# a workaround to disable harden runner
STEP_SECURITY_HARDEN_RUNNER: ${{ vars.disable_harden_runner }}
jobs:
build:
runs-on: ubuntu-22.04
if: github.repository == 'argoproj/argo-workflows'
permissions:
contents: read
packages: write
steps:
- name: Harden the runner (Audit all outbound calls)
if: ${{ vars.disable_harden_runner != 'true' }}
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
egress-policy: audit
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
with:
# Workaround for segfaults under arm64:
# https://github.com/docker/setup-qemu-action/issues/198#issuecomment-2653791775
image: tonistiigi/binfmt:qemu-v7.0.0-28
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Login to registry
if: ${{ github.event_name == 'push' }}
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: quay.io
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_PASSWORD }}
- name: Build dev container image
run: make devcontainer-build
env:
TARGET_PLATFORM: linux/amd64,linux/arm64
DEVCONTAINER_PUSH: ${{ github.event_name == 'push' && 'true' || 'false' }}