feat: Pushing docker containers by version tag (#421)

* feat: build docker image based on tag version

* refactor: tabbing

* refactor: revert conflict
This commit is contained in:
Vederis Leunardus
2024-04-29 17:39:47 +08:00
committed by GitHub
parent 2a1cbf6ced
commit 4a713980bf

View File

@@ -55,11 +55,11 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
id: build id: build
with: with:
context: . context: ./
file: ./packages/webapp/Dockerfile file: ./packages/webapp/Dockerfile
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
push: true push: true
tags: ghcr.io/bigcapitalhq/webapp:latest tags: ghcr.io/bigcapitalhq/webapp:latest, ghcr.io/bigcapitalhq/webapp:${{github.ref_name}}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
- name: Export digest - name: Export digest
@@ -116,7 +116,7 @@ jobs:
file: ./packages/server/Dockerfile file: ./packages/server/Dockerfile
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
push: true push: true
tags: ghcr.io/bigcapitalhq/server:latest tags: ghcr.io/bigcapitalhq/server:latest, ghcr.io/bigcapitalhq/server:${{github.ref_name}}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
- name: Export digest - name: Export digest