Skip to content

Commit

Permalink
WIP: PoC of Gitlab->Github
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceksan committed Dec 5, 2023
1 parent 37e0901 commit dce2303
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build_poc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Push Docker Image

on:
pull_request:
branches:
- main

jobs:
build-and-push:
env:
GIT_DEPTH: "0"
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

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

- name: Build and Push Docker Image
env:
CR_PAT: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 10
run: |
echo $CR_PAT | docker login ghcr.io -u $GITHUB_REPOSITORY --password-stdin
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/$GITHUB_REPOSITORY/gooddata-data-pipeline-meltano:v3.1.0-python3.11 -f Dockerfile_meltano .
docker push ghcr.io/$GITHUB_REPOSITORY/gooddata-data-pipeline-meltano:v3.1.0-python3.11

0 comments on commit dce2303

Please sign in to comment.