Skip to content

Commit

Permalink
fix: PAN-1832 change dev image tag (#62)
Browse files Browse the repository at this point in the history
* fix: PAN-1832 change dev image tag
  • Loading branch information
jpantos authored Jul 24, 2024
1 parent ae6d151 commit 1d8cdf6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
needs: [build]
secrets: 'inherit'
with:
tag: ${{ needs.build.outputs.version }}-development
tag: development
architecture: amd64
environment: main
10 changes: 10 additions & 0 deletions .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
description: 'Environment where the secrets are stored'
required: true
type: string
extra_tag:
description: 'Additional tag to push'
required: false
type: string
default: ""
secrets:
DOCKERHUB_USERNAME:
description: 'Docker Hub username'
Expand Down Expand Up @@ -81,6 +86,11 @@ jobs:
- name: Build and push the images
run: |
if [ -n "${{ inputs.extra_tag }}" ]; then
export EXTRA_TAG="${{ inputs.extra_tag }}"
else
export EXTRA_TAG=$DOCKER_TAG
fi
docker buildx bake \
--set "*.cache-from=type=local,src=/tmp/.buildx-cache" \
--set "*.cache-to=type=local,dest=/tmp/.buildx-cache-new" \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
tag: ${{ github.event.release.tag_name }}${{ needs.define-environment.outputs.deployment_environment }}
architecture: amd64
environment: dockerhub
extra_tag: ${{ github.event.release.prerelease && 'beta' || 'latest' }}

build:
name: Build and attach .deb and .whl package
Expand Down
10 changes: 6 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ networks:
services:
app:
restart: always
image: pantosio/service-node-app:${DOCKER_TAG-latest}
image: pantosio/service-node-app:${DOCKER_TAG-local}
build:
context: .
dockerfile: Dockerfile
target: servicenode
x-bake:
tags:
- ${DOCKER_REGISTRY-pantosio}/service-node-app:${DOCKER_TAG-latest}
- ${DOCKER_REGISTRY-pantosio}/service-node-app:${DOCKER_TAG-local}
- ${DOCKER_REGISTRY-pantosio}/service-node-worker:${EXTRA_TAG-local}
networks:
pantos-service-node:
env_file: []
Expand All @@ -35,14 +36,15 @@ services:
- db
worker:
restart: always
image: pantosio/service-node-worker:${DOCKER_TAG-latest}
image: pantosio/service-node-worker:${DOCKER_TAG-local}
build:
context: .
dockerfile: Dockerfile
target: servicenode-celery-worker
x-bake:
tags:
- ${DOCKER_REGISTRY-pantosio}/service-node-worker:${DOCKER_TAG-latest}
- ${DOCKER_REGISTRY-pantosio}/service-node-worker:${DOCKER_TAG-local}
- ${DOCKER_REGISTRY-pantosio}/service-node-worker:${EXTRA_TAG-local}
networks:
pantos-service-node:
env_file: []
Expand Down

0 comments on commit 1d8cdf6

Please sign in to comment.