Skip to content

Commit 83d5ed8

Browse files
committed
test: ci
1 parent 1bb70e9 commit 83d5ed8

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
18-
- name: Set up QEMU
19-
uses: docker/setup-qemu-action@v3
20-
21-
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v3
23-
24-
- name: Login to Docker Hub
25-
uses: docker/login-action@v3
26-
with:
27-
username: ${{ vars.DOCKERHUB_USERNAME }}
28-
password: ${{ secrets.DOCKERHUB_TOKEN }}
29-
30-
- name: Login to GitHub Container Registry
31-
uses: docker/login-action@v3
32-
with:
33-
registry: ghcr.io
34-
username: ${{ github.actor }}
35-
password: ${{ secrets.GITHUB_TOKEN }}
36-
3716
- name: Build and push
38-
uses: docker/build-push-action@v6
39-
id: build
17+
uses: aroglahcim/github-actions/build-and-push@main
4018
with:
41-
platforms: linux/amd64,linux/arm64
42-
push: true
43-
tags: |
44-
ghcr.io/${{ github.repository }}:${{ github.sha }},
45-
ghcr.io/${{ github.repository }}:latest,
46-
${{ github.repository }}:${{ github.sha }}
47-
${{ github.repository }}:latest
48-
cache-from: type=gha
49-
cache-to: type=gha,mode=max
19+
platforms: linux/amd64

0 commit comments

Comments
 (0)