chore: Update *-release.md issue templates for vector.dev package rel… #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
steps: | |
- name: (PR comment) Get PR branch | |
if: ${{ github.event_name == 'issue_comment' }} | |
uses: xt0rted/pull-request-comment-branch@v2 | |
id: comment-branch | |
- name: (PR comment) Set latest commit status as pending | |
if: ${{ github.event_name == 'issue_comment' }} | |
uses: myrotvorets/[email protected] | |
with: | |
sha: ${{ steps.comment-branch.outputs.head_sha }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
context: Environment Suite | |
status: pending | |
- name: (PR comment) Checkout PR branch | |
if: ${{ github.event_name == 'issue_comment' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ steps.comment-branch.outputs.head_ref }} | |
- name: Checkout branch | |
if: ${{ github.event_name != 'issue_comment' }} | |
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@96383f45573cb7f253c731d3b3ab81c87ef81934 | |
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 comment) Set latest commit status as ${{ job.status }} | |
uses: myrotvorets/[email protected] | |
if: always() && github.event_name == 'issue_comment' | |
with: | |
sha: ${{ steps.comment-branch.outputs.head_sha }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
context: Environment Suite | |
status: ${{ job.status }} |