Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • prosper/docker-with-buildx
1 result
Show changes
Commits on Source (17)
name: Create GitHub Release after GitLab tag mirror
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
# GET LATEST CODE
- name: Checkout latest code
uses: actions/checkout@master
with:
fetch-depth: 0
# EXTRACT TAG FROM PUSH
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- name: Use tag
run: echo ${{steps.tag.outputs.tag}}
# GENERATE CHANGELOG, RELEASE
- id: conventional_changelog
uses: ardalanamini/auto-changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{steps.tag.outputs.tag}}
body: |
Automatic release of version: **${{steps.tag.outputs.tag}}**
**Changes in this release:**
${{ steps.conventional_changelog.outputs.changelog }}
draft: false
prerelease: false
\ No newline at end of file
......@@ -5,9 +5,9 @@ stages:
test docker:
stage: test
image: registry.griefed.de/prosper/docker-with-buildx:latest
image: griefed/docker-with-buildx:latest
services:
- name: docker:dind
- name: griefed/gitlab-ci-cd:1.0.1
alias: docker
variables:
project_name: $CI_PROJECT_NAME
......@@ -15,16 +15,16 @@ test docker:
before_script:
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name grfdbuilder
script:
- docker pull "$CI_REGISTRY_IMAGE:develop"
- docker buildx build
--push
--platform linux/amd64,linux/arm/v7,linux/arm64
--cache-from "$CI_REGISTRY_IMAGE:develop"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop"
--tag "$CI_REGISTRY_IMAGE:develop"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop" .
--tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop" .
except:
refs:
- tags
......@@ -34,7 +34,7 @@ test docker:
release:
needs: ['test docker']
stage: release
image: registry.griefed.de/prosper/gitlab-semantic-release:latest
image: griefed/gitlab-ci-cd:1.0.1
services:
- name: docker:dind
alias: docker
......@@ -53,7 +53,7 @@ release:
build:
stage: build
image: registry.griefed.de/prosper/docker-with-buildx:latest
image: griefed/gitlab-ci-cd:1.0.1
services:
- name: docker:dind
alias: docker
......@@ -63,15 +63,18 @@ build:
before_script:
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_TOKEN" docker.io
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u "$DOCKERHUB_USER" -p "$GITHUB_TOKEN" ghcr.io
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name grfdbuilder
script:
- docker pull "$CI_REGISTRY_IMAGE:latest"
- docker pull "$CI_REGISTRY_IMAGE:develop"
- docker buildx build
--push
--platform linux/amd64,linux/arm/v7,linux/arm64
--cache-from "$CI_REGISTRY_IMAGE:latest"
--cache-from "$CI_REGISTRY_IMAGE:develop"
--tag "$CI_REGISTRY_IMAGE:latest"
--tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:$CI_COMMIT_TAG"
--tag "ghcr.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:$CI_COMMIT_TAG"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest" .
only:
......
---
name: Bug Report
about: Report a bug in the application
---
* **What is the current behavior?**
<!-- Issues like "doesn't work" and then not providing information as to WHAT isn't working, may be closed without further comment.-->
* **If the current behavior is a bug, please provide the steps to reproduce**
<!-- providing steps to reproduce is vital in order to verify that it is indeed a bug in the software, and not just a misconfiguration on your part. It helps us track down the source of the problem. -->
* **What is the expected behavior?**
<!-- How is it supposed to work, but currently isn't? What's the expected outcome of what you are currently trying to do? -->
* **Please tell us about your environment:**
<!-- Failing to provide this information slows down reacting on your issue. Withholding this information may lead to us not being able to reproduce your problem to find the source of the problem. -->
- Your Operating System:
- Your Java version:
- Your version of this piece of software:
- Your config file: <!-- Upload your config-file to https://gist.github.com/ -->
- Your latest log file: <!-- Upload your log-file to https://gist.github.com/ -->
* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
---
name: Documentation Request
about: Request for documentation about a certain aspect of this piece of software
---
# Documentation Request
<!-- Delete this line and everything below it, but read below first for information on what you should include -->
Please include the following:
* Links to any existing documentation if it exists but is unclear.
* Information on what feature/aspect of this application needs updating / expansion.
* What you're currently trying to do with the application that has led you to require the given feature.
* Some background on what information you might like to see in the documentation.
---
name: Feature Request
about: Request a feature for this piece of software
---
* **What is the current behavior?**
<!-- Issues like "doesn't work" and then not providing information as to WHAT isn't working, may be closed without further comment.-->
* **What is the wanted/requested behavior?**
<!-- How is it supposed to work, but currently isn't? What's the expected outcome of what you are currently trying to do? -->
* **What are your reasons for making this feature request? Provide solid arguments on why I should start working on it.**
---
name: Pull Request
about: Pull request for a change / addition / fix you made to the repository.
---
* **Please check if the PR fulfills these requirements**
- [ ] Docs have been added / updated (for bug fixes / features)
- [ ] Commits follow conventional commits
<!--
- type: breaking # Changes that break something makes something incompatible to ealier version
release: major
- type: build # Changes that affect the build system or external dependencies
release: patch
- type: chore # Other changes that don't modify src or test files
release: false
- type: ci # Changes to our CI configuration files and scripts
release: false
- type: docs # Documentation only changes
release: false
- type: feat # A new feature
release: minor
- type: fix # A bug fix
release: patch
- type: perf # A code change that improves performance
release: patch
- type: refactor # A code change that neither fixes a bug nor adds a feature
release: false
- type: revert # Reverts a previous commit
release: patch
- type: style # Changes that do not affect the meaning of the code
release: false
- type: test # Adding missing tests or correcting existing tests
release: false
-->
* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
* **What is the current behavior?** (You can also link to an open issue here)
* **What is the new behavior (if this is a feature change)?**
* **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?)
* **Other information**:
......@@ -22,7 +22,7 @@ verifyConditions:
analyzeCommits:
- path: '@semantic-release/commit-analyzer'
releaseRules:
- breaking: true
- type: breaking # Changes that break something makes something incompatible to ealier version
release: major
- type: build # Changes that affect the build system or external dependencies
release: patch
......@@ -83,13 +83,16 @@ generateNotes:
hidden: false
- type: 'perf'
section: ' Performance'
hidden: false
- type: 'refactor'
section: ':scissors: Refactor'
hidden: false
- type: 'revert'
section: '👀 Reverts'
hidden: false
- type: 'style'
section: '💈 Style'
hidden: false
- type: 'test'
section: '🧪 Tests'
hidden: false
......@@ -120,4 +123,4 @@ publish:
success: false
fail: false
\ No newline at end of file
fail: false
### [1.0.1](https://git.griefed.de/prosper/docker-with-buildx/compare/1.0.0...1.0.1) (2021-10-15)
### 🦊 CI/CD
* Create release on GitHub after tag mirror from GitLab ([6f66a73](https://git.griefed.de/prosper/docker-with-buildx/commit/6f66a738cf2ef5572d9e9b2028b92ad0dfb6ff6a))
* Fix "breaking" type ([c0f2883](https://git.griefed.de/prosper/docker-with-buildx/commit/c0f2883194130ddf3b4100f0d909aff48bcaa207))
* Move Docker build for GitHub container registry to GitLab ([ef797b4](https://git.griefed.de/prosper/docker-with-buildx/commit/ef797b4ec8a22916ced399b307fb26d3fbf5c1ba))
* Remove from.cache in docker test job. Refactor build to use cache from develop tag. ([e53a4b9](https://git.griefed.de/prosper/docker-with-buildx/commit/e53a4b953b19428a445dec34c03ba9b74191ae96))
* Switch image to gitlab-ci-cd which provides for all jobs ([75898e0](https://git.griefed.de/prosper/docker-with-buildx/commit/75898e0a5ec1597e7fda1baa2d11c59cbc557111))
* Switch images to DockerHub ([9602ef3](https://git.griefed.de/prosper/docker-with-buildx/commit/9602ef3adae1410d5c517ac117b7769d295e4bdd))
### 🛠 Fixes
* Use stable as latest doesn't support armv7 ([4671582](https://git.griefed.de/prosper/docker-with-buildx/commit/4671582da41fdbf02958e8b5f7ddb1aff116deab))
### Other
* Add GitLab issue templates ([b2a428e](https://git.griefed.de/prosper/docker-with-buildx/commit/b2a428e05cc5cc34f3570124647136006e98a18e))
* Inform users/visitors about move to GitLab ([d8d2914](https://git.griefed.de/prosper/docker-with-buildx/commit/d8d29141092410fac75401a4b9890cf817109021))
* Update gitlab-ci template in README ([e99525c](https://git.griefed.de/prosper/docker-with-buildx/commit/e99525c50e32da2fe24b948ba36f0c020ee90ea2))
* **deps:** update griefed/gitlab-ci-cd docker tag to v1.0.1 ([2200ceb](https://git.griefed.de/prosper/docker-with-buildx/commit/2200ceb80bed62b6f3b6157105a155063e2fe163))
## [1.0.0](https://git.griefed.de/prosper/docker-with-buildx/compare/...1.0.0) (2021-06-19)
......
......@@ -11,10 +11,10 @@ RUN \
chmod a+x \
/docker-buildx
FROM docker:latest
FROM docker:stable
LABEL maintainer="Griefed <griefed@griefed.de>"
COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx
RUN chmod a+x /usr/lib/docker/cli-plugins/docker-buildx
\ No newline at end of file
RUN chmod a+x /usr/lib/docker/cli-plugins/docker-buildx
##### Fork of https://github.com/jdrouet/docker-with-buildx -> git.griefed.de -> github.com/Griefed
# Sources, GitHub, GitLab and Mirroring and all that good stuff
Repositories on GitHub are now for issues only. I've set up my own installation of GitLab and moved all my repositories over to [Git.Griefed.de](https://git.griefed.de/users/Griefed/projects). Make sure to check there first for the latest code before opening an issue on GitHub.
For questions, you can always join my [Discord server](https://discord.griefed.de) and talk to me there.
---
# Docker image with buildx pre-installed
[[_TOC_]]
# Setup
:warning: **Requires CI/CD variable `GITLAB_TOKEN` with personal-access-token (read/write permision to registry and repository).**
......@@ -78,11 +88,9 @@ test docker:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name mybuilder
script:
- docker pull "$CI_REGISTRY_IMAGE:develop"
- docker buildx build
--push
--platform linux/amd64,linux/arm/v7,linux/arm64
--cache-from "$CI_REGISTRY_IMAGE:develop"
--tag "$CI_REGISTRY_IMAGE:develop"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:develop" .
except:
......@@ -126,11 +134,11 @@ build:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker buildx create --use --name mybuilder
script:
- docker pull "$CI_REGISTRY_IMAGE:latest"
- docker pull "$CI_REGISTRY_IMAGE:develop"
- docker buildx build
--push
--platform linux/amd64,linux/arm/v7,linux/arm64
--cache-from "$CI_REGISTRY_IMAGE:latest"
--cache-from "$CI_REGISTRY_IMAGE:develop"
--tag "$CI_REGISTRY_IMAGE:latest"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:$CI_COMMIT_TAG"
--tag "index.docker.io/$DOCKERHUB_USER/$DOCKERHUB_REPO:latest" .
......
{
"extends": [
"config:base"
],
"prConcurrentLimit": 5,
"labels": ["dependencies"],
"assignees": ["Griefed"]
}