Skip to content

Commit 9dc2145

Browse files
add docker squash workflow
1 parent ae76f7a commit 9dc2145

1 file changed

Lines changed: 8 additions & 22 deletions

File tree

.github/workflows/CD.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,11 @@ on:
44
push:
55
branches: [ master, develop ]
66
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- name: GithubPackages Login
12-
uses: docker/login-action@v1.10.0
13-
with:
14-
registry: ghcr.io
15-
username: ${{ github.actor }}
16-
password: ${{ secrets.GITHUB_TOKEN }}
17-
- name: Extract metadata (tags, labels) for Docker
18-
id: meta
19-
uses: docker/metadata-action@v3
20-
with:
21-
images: ghcr.io/${{ github.repository }}
22-
- name: Build and push Docker images
23-
uses: docker/build-push-action@v2
24-
with:
25-
context: .
26-
push: true
27-
tags: ${{ steps.meta.outputs.tags }}
28-
labels: ${{ steps.meta.outputs.labels }}
7+
docker-build-squash-push:
8+
uses: Geode-solutions/actions/.github/workflows/docker-build-squash-push.yml@master
9+
with:
10+
image_name: 'sharetwin_router'
11+
tag: ${{ github.ref_name }}
12+
secrets:
13+
TOKEN: ${{secrets.GITHUB_TOKEN}}
14+

0 commit comments

Comments
 (0)