Skip to content

Commit

Permalink
read yaml values file
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ST0R committed Apr 29, 2024
1 parent 2ab5daa commit 0394080
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: read-yaml-file
uses: pietrobolcato/action-read-yaml@1.0.0
id: read_values_yaml
with:
config: ./charts/values.yaml
- name: yq - portable yaml processor
uses: mikefarah/[email protected]
- name: Set image name
run: echo "IMAGE_NAME=$(yq '.shiny.image.repository' values.yaml)" >> $GITHUB_ENV
- name: Image name
run: |
echo ${{ steps.read_values_yaml.outputs['shiny.image.repository'] }}
echo ${{ env.IMAGE_NAME }}
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3
with:
images: nand42/test-onyxia
images: ${{ env.IMAGE_NAME }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
Expand All @@ -42,10 +42,8 @@ jobs:
with:
context: ./app/
file: ./app/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ steps.docker_meta.outputs.tags }}
${{ github.ref == 'refs/heads/main' && 'nand42/test-onyxia:latest' || '' }}
push: true
tags: ${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.docker_meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down

0 comments on commit 0394080

Please sign in to comment.