update public registry to jfrog (#87) #1
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: Push image to JFrog Artifactory | ||
on: | ||
# pull_request: | ||
# types: [ opened, synchronize, reopened ] | ||
push: | ||
branches: | ||
- 'main' | ||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
IMAGE_TAG: ${{ github.sha }} | ||
ARTIFACTORY_REGISTRY: ${{ vars.TRUEFOUNDRY_ARTIFACTORY_REGISTRY_URL }} | ||
ARTIFACTORY_USERNAME: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_USERNAME }} | ||
ARTIFACTORY_PASSWORD: ${{ secrets.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_PASSWORD }} | ||
ARTIFACTORY_REPOSITORY_URL: ${{ env.TRUEFOUNDRY_ARTIFACTORY_PUBLIC_REPOSITORY }}/async_processor | ||
Check failure on line 19 in .github/workflows/release-to-jfrog.yaml GitHub Actions / Push image to JFrog ArtifactoryInvalid workflow file
|
||
jobs: | ||
build: | ||
name: Build Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkoutout code | ||
uses: actions/checkout@v4 | ||
- name: Log in to JFrog Artifactory | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ env.ARTIFACTORY_USERNAME }} | ||
password: ${{ env.ARTIFACTORY_PASSWORD }} | ||
registry: ${{ env.ARTIFACTORY_REGISTRY }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build and push image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ env.ARTIFACTORY_REPOSITORY_URL }}:${{ env.IMAGE_TAG }} | ||
cache-from: type=registry,ref=${{ env.ARTIFACTORY_REPOSITORY_URL }}:buildcache | ||
cache-to: mode=max,image-manifest=true,type=registry,ref=${{ env.ARTIFACTORY_REPOSITORY_URL }}:buildcache |