Skip to content

Commit 608ea6f

Browse files
updates release
1 parent 8305cbf commit 608ea6f

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/rsyslog.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
name: Create and publish a api image
3+
4+
on:
5+
push:
6+
tags:
7+
- dev-v**
8+
env:
9+
REGISTRY: ghcr.io/angrieralien
10+
API_IMAGE_NAME: audito-maldito
11+
Version: named-pipe-abstraction
12+
13+
jobs:
14+
build-and-push-image:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
24+
- name: Log in to the Container registry
25+
uses: docker/login-action@40891eba8c2bcd1309b07ba8b11232f313e86779
26+
with:
27+
registry: ${{ env.REGISTRY }}
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Get current date
32+
id: date
33+
run: echo "::set-output name=date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
34+
35+
- name: Extract metadata (tags, labels) for Docker
36+
id: meta-api
37+
uses: docker/metadata-action@517f8b0c3b2daa800eac32a9a71024c8126d46a7
38+
with:
39+
images: ${{ env.REGISTRY }}/${{ env.API_IMAGE_NAME }}
40+
41+
- name: Build rsyslog and push Docker image
42+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
43+
with:
44+
context: "./rsyslog"
45+
push: true
46+
file: ./rsyslog/Dockerfile
47+
tags: ${{ env.REGISTRY }}/${{ env.API_IMAGE_NAME }}:${{ github.ref_name }}-rsyslog
48+
labels: ${{ steps.meta-api.outputs.labels }}
49+
50+
- name: Build and push Docker image
51+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
52+
with:
53+
push: true
54+
file: Dockerfile
55+
tags: ${{ env.REGISTRY }}/${{ env.API_IMAGE_NAME }}:${{ github.ref_name }}
56+
labels: ${{ steps.meta-api.outputs.labels }}

0 commit comments

Comments
 (0)