Skip to content

Commit 8493228

Browse files
committed
Create docker-image.yml
1 parent 2a7b22e commit 8493228

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
environment: onlyone
11+
name: "Build"
12+
concurrency:
13+
group: build
14+
cancel-in-progress: true
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: docker/login-action@v3
19+
with:
20+
registry: ${{ vars.DOCKERHUB_REGISTRY }}
21+
username: ${{ vars.DOCKERHUB_USERNAME }}
22+
password: ${{ secrets.DOCKERHUB_TOKEN }}
23+
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Build and push
31+
uses: docker/build-push-action@v5
32+
with:
33+
context: .
34+
push: true
35+
platforms: linux/amd64
36+
tags: ${{ vars.DOCKERHUB_REGISTRY }}/workspaces-backend-v2:dev
37+

0 commit comments

Comments
 (0)