-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it multi arch and add a publish workflow
- Loading branch information
1 parent
4b35f14
commit 28bb2e5
Showing
3 changed files
with
53 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish Docker image | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
tags: | ||
- "latest" | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: docker.io | ||
username: ${{ secrets.DOCKER_REPOSITORY_LOGIN }} | ||
password: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }} | ||
- name: Build action image | ||
run: make docker-build | ||
env: | ||
IMAGE_TAG: "docker.io/botsudo/action-doctum:latest" | ||
PLATFORM: "linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6" |
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