-
Notifications
You must be signed in to change notification settings - Fork 37
48 lines (48 loc) · 1.57 KB
/
post-processor.yaml
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
46
47
48
name: Build VV8 postprocessors
on:
push:
branches:
- 'master'
jobs:
upload_to_docker:
name: Push docker image to docker Hub
runs-on: [self-hosted, linux, postprocessor-builder]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Build postprocessors
uses: ./.github/build-postprocessors
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: visiblev8
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Extract short SHA
id: short_sha
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: visiblev8/vv8-postprocessors
tags: |
type=raw,value=latest,enable=true
type=raw,value=${{ steps.short_sha.outputs.sha_short }},enable=true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./post-processor/
file: ./post-processor/build/Dockerfile.vv8
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Remove artifacts
if: always()
uses: docker://ubuntu:latest
with:
entrypoint: /usr/bin/rm
args: -rf ./post-processor/