This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github actions instead of Docker hub
- Build on release with a Docker tag - Build for a bunch of cpu architectures
- Loading branch information
Showing
7 changed files
with
106 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Docker build | ||
on: | ||
pull_request: | ||
branches: [master] | ||
paths-ignore: | ||
- .github/workflows/buildx-release.yml | ||
- .github/workflows/dockerhub-description.yml | ||
- .dockerignore | ||
- .gitignore | ||
- docker-compose.yml | ||
- LICENSE | ||
- readme.md | ||
- title.png | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build image | ||
run: docker build . |
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,35 @@ | ||
name: Buildx latest | ||
on: | ||
push: | ||
branches: [master] | ||
paths-ignore: | ||
- .github/workflows/build.yml | ||
- .github/workflows/buildx-release.yml | ||
- .github/workflows/dockerhub-description.yml | ||
- .dockerignore | ||
- .gitignore | ||
- docker-compose.yml | ||
- LICENSE | ||
- readme.md | ||
- title.png | ||
jobs: | ||
buildx: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Buildx setup | ||
uses: crazy-max/ghaction-docker-buildx@v1 | ||
- name: Dockerhub login | ||
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u qmcgaw --password-stdin 2>&1 | ||
- name: Run Buildx | ||
run: | | ||
docker buildx build \ | ||
--progress plain \ | ||
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \ | ||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ | ||
--build-arg VCS_REF=`git rev-parse --short HEAD` \ | ||
--build-arg VERSION=latest \ | ||
-t qmcgaw/meemo:latest \ | ||
--push \ | ||
. | ||
- run: curl -X POST https://hooks.microbadger.com/images/qmcgaw/meemo/6C45PnFKaNnQg0HAtTnK1GANz64= || exit 0 |
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,35 @@ | ||
name: Buildx release | ||
on: | ||
release: | ||
types: [published] | ||
paths-ignore: | ||
- .github/workflows/build.yml | ||
- .github/workflows/buildx-latest.yml | ||
- .github/workflows/dockerhub-description.yml | ||
- .dockerignore | ||
- .gitignore | ||
- docker-compose.yml | ||
- LICENSE | ||
- readme.md | ||
- title.png | ||
jobs: | ||
buildx: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Buildx setup | ||
uses: crazy-max/ghaction-docker-buildx@v1 | ||
- name: Dockerhub login | ||
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u qmcgaw --password-stdin 2>&1 | ||
- name: Run Buildx | ||
run: | | ||
docker buildx build \ | ||
--progress plain \ | ||
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \ | ||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ | ||
--build-arg VCS_REF=`git rev-parse --short HEAD` \ | ||
--build-arg VERSION=${GITHUB_REF##*/} \ | ||
-t qmcgaw/meemo:${GITHUB_REF##*/} \ | ||
--push \ | ||
. | ||
- run: curl -X POST https://hooks.microbadger.com/images/qmcgaw/meemo/6C45PnFKaNnQg0HAtTnK1GANz64= || exit 0 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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