Skip to content

Commit 322425e

Browse files
authored
Create docker.yaml
1 parent 123cf05 commit 322425e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/docker.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
docker:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Docker meta
12+
id: meta
13+
uses: docker/metadata-action@v5
14+
with:
15+
# list of Docker images to use as base name for tags
16+
images: |
17+
androz2091/manage-invite-dash-redirects
18+
# generate Docker tags based on the following events/attributes
19+
tags: |
20+
type=schedule
21+
type=ref,event=branch
22+
type=ref,event=pr
23+
type=semver,pattern={{version}}
24+
type=semver,pattern={{major}}.{{minor}}
25+
type=semver,pattern={{major}}
26+
type=sha
27+
-
28+
name: Set up QEMU
29+
uses: docker/setup-qemu-action@v3
30+
-
31+
name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
-
34+
name: Login to Docker Hub
35+
uses: docker/login-action@v3
36+
with:
37+
username: ${{ secrets.DOCKERHUB_USERNAME }}
38+
password: ${{ secrets.DOCKERHUB_TOKEN }}
39+
-
40+
name: Build and push
41+
uses: docker/build-push-action@v6
42+
with:
43+
push: true
44+
tags: ${{ steps.meta.outputs.tags }}
45+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)