forked from HO-CTO/sre-monitoring-as-code
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 903 Bytes
/
fmt-lint-tool.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
name: 'docker-fmt-lint'
on:
workflow_dispatch
env:
REGISTRY: ghcr.io
IMAGE_NAME: sre-fmt-lint
USER: ho-cto
jobs:
publish-jsonnet-dev-tool:
name: 'Build fmt lint tool'
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
#Logs into Github registry
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container
run: docker build -t ${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE_NAME }} ${GITHUB_WORKSPACE}/monitoring-as-code/tools/jsonnet-dev-tool
- name: Push image to GitHub Container Registry
run: docker push ${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE_NAME }}