-
Notifications
You must be signed in to change notification settings - Fork 94
40 lines (35 loc) · 1.17 KB
/
curldemo.yaml
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
name: curldemo
on:
push:
branches:
- master
paths:
- 'deploy/test-apps/curldemo/**'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
curldemo:
runs-on: ubuntu-22.04
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Harden Runner
uses: step-security/harden-runner@f0db2aa8a570959027d6be2a227028ad19fd9e8f
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 1
- name: Login to Dockerhub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@a8d35412fb758de9162fd63e3fa3f0942bdedb4d
with:
context: ./deploy/test-apps/curldemo/
file: ./deploy/test-apps/curldemo/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USER }}/k8gb-demo-curl:latest