forked from chuhlomin/render-template
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 853 Bytes
/
main.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
name: main
on:
push:
branches:
- main
env:
DOCKER_IMAGE: pavlospt/render-template
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and push Docker image
uses: chuhlomin/actions/docker-build-push@main
with:
username: pavlospt
password: ${{ secrets.DOCKER_PASSWORD }}
image_name: ${{ env.DOCKER_IMAGE }}
tags: |
${{ env.DOCKER_IMAGE }}:${{ github.sha }}
${{ env.DOCKER_IMAGE }}:latest
- name: Test action
uses: ./ # Uses an action in the root directory
id: render
with:
template: ./testdata/template.txt
vars: |
name: world
- name: Get `result` output
run: echo "${{ steps.render.outputs.result }}"