Skip to content

Commit

Permalink
Use ref name instead of docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkiro committed Jul 19, 2024
1 parent 55f3ffb commit 31e8b81
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,13 @@ name: Update test instance
on:
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
deploy:
runs-on: [self-hosted, test]
steps:
- name: Extract version info
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Update docker-compose.override.yml
run: |
cd /var/local/eeag
sed -i "/image/c\ image: ${{ steps.meta.outputs.tags }}" docker-compose.override.yml
sed -i "/image/c\ image: ghcr.io/eftafmo/dataviz:${{ github.base_ref || github.ref_name }}" docker-compose.override.yml
docker-compose pull web
docker-compose up -d web

0 comments on commit 31e8b81

Please sign in to comment.