Skip to content

Commit

Permalink
push to github container resistory
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchin committed Jan 26, 2024
1 parent ad8f178 commit 19c2db0
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/build-and-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push GWS amd64
uses: docker/build-push-action@v5
Expand All @@ -33,7 +39,9 @@ jobs:
push: true
platforms: linux/amd64
provenance: false
tags: gplates/gws:amd64-${{github.ref_name}}
tags: |
gplates/gws:amd64-${{github.ref_name}}
ghcr.io/GPlates/gws:amd64-${{github.ref_name}}
-
name: Build and push GWS arm64
uses: docker/build-push-action@v5
Expand All @@ -43,7 +51,9 @@ jobs:
push: true
platforms: linux/arm64
provenance: false
tags: gplates/gws:arm64-${{github.ref_name}}
tags: |
gplates/gws:arm64-${{github.ref_name}}
ghcr.io/GPlates/gws:arm64-${{github.ref_name}}
-
name: Build and push PostGIS amd64
uses: docker/build-push-action@v5
Expand All @@ -53,7 +63,9 @@ jobs:
push: true
platforms: linux/amd64
provenance: false
tags: gplates/postgis:amd64-${{github.ref_name}}
tags: |
gplates/postgis:amd64-${{github.ref_name}}
ghcr.io/GPlates/postgis:amd64-${{github.ref_name}}
-
name: Build and push PostGIS arm64
uses: docker/build-push-action@v5
Expand All @@ -63,12 +75,16 @@ jobs:
push: true
platforms: linux/arm64
provenance: false
tags: gplates/postgis:arm64-${{github.ref_name}}
tags: |
gplates/postgis:arm64-${{github.ref_name}}
ghcr.io/GPlates/postgis:arm64-${{github.ref_name}}
-
name: Create cross-platform images
run: |
docker buildx imagetools create -t gplates/postgis:${{github.ref_name}} gplates/postgis:amd64-${{github.ref_name}} gplates/postgis:arm64-${{github.ref_name}}
docker buildx imagetools create -t gplates/gws:${{github.ref_name}} gplates/gws:amd64-${{github.ref_name}} gplates/gws:arm64-${{github.ref_name}}
docker buildx imagetools create -t ghcr.io/GPlates/postgis:${{github.ref_name}} ghcr.io/GPlates/postgis:amd64-${{github.ref_name}} ghcr.io/GPlates/postgis:arm64-${{github.ref_name}}
docker buildx imagetools create -t ghcr.io/GPlates/gws:${{github.ref_name}} ghcr.io/GPlates/gws:amd64-${{github.ref_name}} ghcr.io/GPlates/gws:arm64-${{github.ref_name}}
#docker buildx imagetools create -t gplates/postgis:latest gplates/postgis:amd64-${{github.ref_name}} gplates/postgis:arm64-${{github.ref_name}}
#docker buildx imagetools create -t gplates/gws:latest gplates/gws:amd64-${{github.ref_name}} gplates/gws:arm64-${{github.ref_name}}

0 comments on commit 19c2db0

Please sign in to comment.