-
Notifications
You must be signed in to change notification settings - Fork 93
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@951b48540b429070694bc8abd82fd6901eb123ca
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc
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@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: ./deploy/test-apps/curldemo/
file: ./deploy/test-apps/curldemo/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USER }}/k8gb-demo-curl:latest