]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add latest_prerelease Docker Hub tag for following the latest alpha release (#3465)
authorMatthew Armand <marmand68@gmail.com>
Wed, 21 Dec 2022 03:18:15 +0000 (22:18 -0500)
committerGitHub <noreply@github.com>
Wed, 21 Dec 2022 03:18:15 +0000 (19:18 -0800)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
.github/workflows/docker.yml
CHANGES.md
docs/usage_and_configuration/black_docker_image.md

index 855186f9bf1d0bcc9a06930ff5b0b3d6b05279e1..04e30e727bd2557efa68a035020b207a06c1156b 100644 (file)
@@ -54,5 +54,16 @@ jobs:
           push: true
           tags: pyfound/black:latest_release
 
+      - name: Build and push latest_prerelease tag
+        if:
+          ${{ github.event_name == 'release' && github.event.action == 'published' &&
+          github.event.release.prerelease }}
+        uses: docker/build-push-action@v3
+        with:
+          context: .
+          platforms: linux/amd64,linux/arm64
+          push: true
+          tags: pyfound/black:latest_prerelease
+
       - name: Image digest
         run: echo ${{ steps.docker_build.outputs.digest }}
index c07d81d13204c44adc8da12a54876c8d1fc1aa9f..c89b10638ed6fe92ccb4187a7f1a5e72d8f163a7 100644 (file)
@@ -71,6 +71,8 @@
 <!-- For example, Docker, GitHub Actions, pre-commit, editors -->
 
 - Move 3.11 CI to normal flow now all dependencies support 3.11 (#3446)
+- Docker: Add new `latest_prerelease` tag automation to follow latest black alpha
+  release on docker images (#3465)
 
 ### Documentation
 
index 8de566ea270007a89ef05e2fa1b76644fb4ad02a..85aec91ef1c387fdc5d5162b037b6c97f7e73cbe 100644 (file)
@@ -10,6 +10,11 @@ _Black_ images with the following tags are available:
 - `latest_release` - tag created when a new version of _Black_ is released.\
   ℹ Recommended for users who want to use released versions of _Black_. It maps to [the latest release](https://github.com/psf/black/releases/latest)
   of _Black_.
+- `latest_prerelease` - tag created when a new alpha (prerelease) version of _Black_ is
+  released.\
+  ℹ Recommended for users who want to preview or test alpha versions of _Black_. Note that
+  the most recent release may be newer than any prerelease, because no prereleases are created
+  before most releases.
 - `latest` - tag used for the newest image of _Black_.\
   ℹ Recommended for users who always want to use the latest version of _Black_, even before
   it is released.