Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workflow for image build with test tag #127

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/buildImageWithTestTag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CD

on:
merge_group:
types:
- checks_requested
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build Query Connector Image
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
packages: "write"
steps:
- name: Check Out Changes
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: lowercase repo name to use in following step
env:
REPO: ${{ github.repository }}
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./query-connector
push: true
tags: |
ghcr.io/${{ env.REPO }}/query-connector:test
Loading