Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 668fec9

Browse files
authored
Create docker-container-publish.yml
1 parent 4d65e96 commit 668fec9

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish Container Image
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: node:18.16.0
8+
steps:
9+
-
10+
name: Checkout
11+
uses: actions/checkout@v3
12+
-
13+
name: Set up QEMU
14+
uses: docker/setup-qemu-action@v2
15+
-
16+
name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
-
19+
name: Login to Docker Hub
20+
uses: docker/login-action@v2
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
-
25+
name: Login to GitHub Container Registry
26+
uses: docker/login-action@v2
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.repository_owner }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
-
32+
name: Build and push
33+
uses: docker/build-push-action@v4
34+
with:
35+
context: ./deploy/prod
36+
push: true
37+
provenance: true
38+
sbom: true
39+
cache-from: type=gha
40+
cache-to: type=gha,mode=max
41+
tags: ${{ steps.meta.outputs.tags }}
42+
platforms: |
43+
linux/amd64
44+
linux/arm64
45+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)