-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5def59
commit faa806a
Showing
3 changed files
with
43 additions
and
62 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,45 +13,37 @@ jobs: | |
build-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Parse short sha | ||
uses: benjlevesque/[email protected] | ||
- name: Parse short sha | ||
uses: benjlevesque/[email protected] | ||
id: short-sha | ||
- | ||
name: set lower case owner name | ||
- name: set lower case owner name | ||
run: | | ||
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV} | ||
env: | ||
OWNER: '${{ github.repository_owner }}' | ||
- | ||
name: Checkout repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- | ||
name: Docker login Dockerhub | ||
- name: Docker login Dockerhub | ||
id: docker_login | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Set up QEMU | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: ${{ env.PLATFORMS }} | ||
- | ||
name: Set up Docker Buildx | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
platforms: ${{ env.PLATFORMS }} | ||
- | ||
name: Extract metadata (tags, labels) for docker image | ||
- name: Extract metadata (tags, labels) for docker image | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
|
@@ -71,9 +63,8 @@ jobs: | |
org.opencontainers.image.url=https://github.com/citygml4j/citygml-tools | ||
org.opencontainers.image.documentation=https://github.com/citygml4j/citygml-tools#docker | ||
org.opencontainers.image.source=https://github.com/citygml4j/citygml-tools | ||
- | ||
name: Build and publish | ||
uses: docker/build-push-action@v5 | ||
- name: Build and publish | ||
uses: docker/build-push-action@v6 | ||
id: docker_build | ||
with: | ||
push: true | ||
|
@@ -82,6 +73,5 @@ jobs: | |
platforms: ${{ env.PLATFORMS }} | ||
build-args: | | ||
CITYGML_TOOLS_VERSION=${{ steps.short-sha.outputs.sha }} | ||
- | ||
name: Image digest | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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