-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.1 KB
/
debian11.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: debian11
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'debian11/*'
- '.github/workflows/debian11.yml'
workflow_dispatch:
env:
REGISTRY_PATH: 'docker.io/paritytech'
IMAGE_NAME: 'debian11'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set vars
id: vars
run: |
export COMMIT_SHA=${{ github.sha }}
echo "IMAGE_DATE_TAG=${COMMIT_SHA:0:8}-$(date +%Y%m%d)" >> $GITHUB_OUTPUT
- name: build and push staging
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/actions/build-push-image
with:
registry: ${{ env.REGISTRY_PATH }}
image-name: ${{ env.IMAGE_NAME }}
image-tags: >
staging
- name: build and push
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/build-push-image
with:
registry: ${{ env.REGISTRY_PATH }}
image-name: ${{ env.IMAGE_NAME }}
image-tags: >
${{ steps.vars.outputs.IMAGE_DATE_TAG }}
latest