Skip to content

deploy/added running test step to pipeline #3

deploy/added running test step to pipeline

deploy/added running test step to pipeline #3

Workflow file for this run

name: Lab 2 Container Registry

Check failure on line 1 in .github/workflows/pipeline.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pipeline.yml

Invalid workflow file

(Line: 37, Col: 17): Unrecognized named-value: 'id'. Located at position 1 within expression: id.meta.outputs.tags, (Line: 38, Col: 19): Unrecognized named-value: 'id'. Located at position 1 within expression: id.meta.outputs.labels
on: [push]
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/ecommerce-app
tags: |
type=raw,value=latest
type=sha,prefix=sha-,format=short
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./back
push: true
tags: ${{ id.meta.outputs.tags }}
labels: ${{ id.meta.outputs.labels }}
- name: Run Master Validation Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x ./tests/lab2_test.sh
./tests/lab2_test.sh