Skip to content

Commit

Permalink
💚 Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yunochi committed Dec 18, 2024
1 parent 0ff34ef commit bac35ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

.git
.gitignore
.github
Dockerfile
local_db_data
local_redis_data
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: Build and push docker image

on:
workflow_dispatch:
push:
push:
branches:
- 'main'
- 'develop'
tags:
- 'v**'

release:
types: [published, released, edited]
pull_request:
Expand All @@ -24,14 +23,15 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{env.REGISTRY}}/${{env.REGISTRY}}
images: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -41,7 +41,6 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=${{env.REGISTRY}}/${{env.IMAGE_NAME}}:build-cache
cache-to: type=registry,ref=${{env.REGISTRY}}/${{env.IMAGE_NAME}}:build-cache,mode=max,image-manifest=true,oci-mediatypes=true
Expand Down

0 comments on commit bac35ae

Please sign in to comment.