Skip to content

Commit

Permalink
- add platforms to buildx setup
Browse files Browse the repository at this point in the history
- revert buildx cache
  • Loading branch information
danielkelemen committed Oct 17, 2023
1 parent 1a70b4a commit e7e4276
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-test-and-publish-ce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ matrix.PLATFORM == 'aws-arm-core-2-default' }}
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build
run: ./pipeline.sh
env:
Expand All @@ -36,6 +42,18 @@ jobs:
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/arm64,linux/amd64
- name: Expose GitHub Runtime
uses: actions/github-script@v6
with:
script: |
Object.keys(process.env).forEach(function (key) {
if (key.startsWith('ACTIONS_')) {
core.info(`${key}=${process.env[key]}`);
core.exportVariable(key, process.env[key]);
}
});
- name: Publish multi-platform images
run: ./release.sh
env:
Expand Down
2 changes: 2 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ function build_and_push {
--build-arg EE=${EE} \
--build-arg USER=${NEXUS_USER} \
--build-arg PASSWORD=${NEXUS_PASS} \
--cache-to type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \
--cache-from type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \
--platform $PLATFORMS
echo "::endgroup::"

Expand Down

0 comments on commit e7e4276

Please sign in to comment.