-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.13 KB
/
container_sig_analysis.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
38
39
40
41
42
43
44
45
name: Publish Signature analysis image
on:
push:
branches: [main]
paths:
- 'containers/signature_analysis/*'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/signature-analysis
jobs:
build-and-push:
name: Build Signature analysis container
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Log into Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Get current date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Build and push image
uses: docker/build-push-action@v3
with:
context: ./containers/signature_analysis
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DATE }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
build-args: |
VERSION=${{ env.DATE }}