Skip to content

Revert "chore(dedupe): add two test cases" (#21311) #28393

Revert "chore(dedupe): add two test cases" (#21311)

Revert "chore(dedupe): add two test cases" (#21311) #28393

Workflow file for this run

name: Environment Suite
on:
workflow_call:
workflow_dispatch:
push:
branches:
- master
env:
VERBOSE: true
CI: true
jobs:
publish-new-environment:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- name: (PR review) Set latest commit status as pending
if: ${{ github.event_name == 'pull_request_review' }}
uses: myrotvorets/[email protected]
with:
sha: ${{ github.event.review.commit_id }}
token: ${{ secrets.GITHUB_TOKEN }}
context: Environment Suite
status: pending
- name: (PR review) Checkout PR branch
if: ${{ github.event_name == 'pull_request_review' }}
uses: actions/checkout@v3
with:
ref: ${{ github.event.review.commit_id }}
- name: Checkout branch
if: ${{ github.event_name != 'pull_request_review' }}
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
uses: docker/login-action@v3
if: github.ref == 'refs/heads/master'
with:
username: ${{ secrets.CI_DOCKER_USERNAME }}
password: ${{ secrets.CI_DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: timberio/vector-dev
flavor: |
latest=true
tags: type=sha, format=long
labels: |
org.opencontainers.image.description=Image for Vector's Docker development environment
org.opencontainers.image.source=https://github.com/vectordotdev/vector/tree/master/scripts/environment/Dockerfile
org.opencontainers.image.title=Vector development environment
org.opencontainers.image.url=https://github.com/vectordotdev/vector
- name: Build and push
uses: docker/[email protected]
with:
context: .
file: ./scripts/environment/Dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: (PR review) Set latest commit status as ${{ job.status }}
uses: myrotvorets/[email protected]
if: always() && github.event_name == 'pull_request_review'
with:
sha: ${{ github.event.review.commit_id }}
token: ${{ secrets.GITHUB_TOKEN }}
context: Environment Suite
status: ${{ job.status }}