Skip to content

Commit

Permalink
Merge pull request intel#72 from intel-innersource/push_to_harbor
Browse files Browse the repository at this point in the history
Build and push Docker image to Harbor
  • Loading branch information
novafacing authored Jan 30, 2024
2 parents b00b8fa + e8b5108 commit dc62872
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
tar -C /usr/bin --strip-components=1 -xvf \
toml-0.2.3-x86_64-linux.tar.gz toml-0.2.3-x86_64-linux/toml
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download and Publish Artifacts
run: |
Expand Down Expand Up @@ -100,3 +100,30 @@ jobs:
--title "Beta Release ${{ github.sha }}" \
--notes-file release-notes \
release-assets/*
publish_harbor:
name: Publish Docker image to Harbor
runs-on: [self-hosted]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4

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

- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: amr-registry.caas.intel.com
username: ${{ secrets.HARBOR_USERNAME}}
password: ${{ secrets.HARBOR_PAT }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: amr-registry.caas.intel.com/tsffs/tsffs:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit dc62872

Please sign in to comment.