ci: experimenting with Composite.Dockerfile
This commit is contained in:
@@ -130,6 +130,29 @@ jobs:
|
||||
docker push registry.digitalocean.com/kemkas/kemkas-be:${GITHUB_SHA::8}
|
||||
docker push ghcr.io/${{ github.repository_owner }}/kemkas-be:${GITHUB_SHA::8}
|
||||
|
||||
docker-composit-build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
- docker-be-build
|
||||
- docker-fe-build
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- name: Log in to GitHub Container Registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
- uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Kemkas.Web/Composite.Dockerfile
|
||||
args: FE_TAG=${GITHUB_SHA::8},BE_TAG=${GITHUB_SHA::8}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
push: false
|
||||
load: true
|
||||
tags: ghcr.io/${{ github.repository_owner }}/kemkas/kemkas-composite:${GITHUB_SHA::8}
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
@@ -171,4 +194,4 @@ jobs:
|
||||
repo: context.repo.repo,
|
||||
ref: "refs/tags/${{ env.DOCKER_IMAGE_ID }}",
|
||||
sha: context.sha
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user