rombert commented on code in PR #41: URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/41#discussion_r3757014931
########## .github/workflows/docker-push.yml: ########## @@ -0,0 +1,48 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Push Sling Committer CLI Docker image + +on: + push: + branches: + - master + +jobs: + sling-committer-cli-push-image: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v7 + - name: Set up JDK 21 + uses: actions/setup-java@v5 + with: + distribution: 'adopt' + java-version: '21' + cache: 'maven' + - name: Login to Docker Hub + id: login-docker-hub + uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 + with: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up QEMU # https://github.com/docker/buildx/issues/499 + uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd + - name: Push Docker image + run: mvn --batch-mode clean install -Ddocker.platforms=linux/amd64,linux/arm64 -Dmaven.test.skip=true -Ddocker.skip.push=false -Ddocker.image.tag=latest Review Comment: Yes, that is a good point. I wanted to make it wait for the Jenkins check but it was too much code :-) Fixed in 76c0616286e385ca3c2be03c208b07bf1c0a03b6 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
