summaryrefslogtreecommitdiffstats
path: root/.github/workflows/update-docker-images.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:19 +0000
commit6c09f2a45c5541e9c207d14fc7aa21a4a0066bde (patch)
tree0221189d367bf661f6f9493c4f17a03f0dd4b7d2 /.github/workflows/update-docker-images.yml
parentReleasing progress-linux version 1:2.11-8~progress7.99u1. (diff)
downloadbash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.tar.xz
bash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.zip
Merging upstream version 1:2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/update-docker-images.yml')
-rw-r--r--.github/workflows/update-docker-images.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/update-docker-images.yml b/.github/workflows/update-docker-images.yml
new file mode 100644
index 0000000..5f6e269
--- /dev/null
+++ b/.github/workflows/update-docker-images.yml
@@ -0,0 +1,43 @@
+name: update-docker-images
+
+# Update Docker images when the set of commands required present for testing
+# change. This is not perfect as it would be good to have the new commands
+# installed already at PR time, and at least at time the change lands in the
+# default branch. That way it'd be tested immediately then with images
+# containing it, instead of later along with some other, completely unrelated
+# change.
+
+on:
+ push:
+ paths:
+ - test/test-cmd-list.txt
+ - test/docker/*/Dockerfile
+ - test/docker/*/install-packages.sh
+ workflow_dispatch:
+
+jobs:
+ update-test-image:
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'scop' && github.ref == 'refs/heads/master'
+ strategy:
+ matrix:
+ include:
+ - dist: alpine
+ - dist: centos7
+ - dist: debian10
+ - dist: fedoradev
+ - dist: ubuntu14
+ steps:
+ - uses: actions/checkout@v4
+ - uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{github.repository_owner}}
+ password: ${{secrets.GITHUB_TOKEN}}
+ - uses: docker/build-push-action@v5
+ with:
+ context: test
+ file: test/docker/${{matrix.dist}}/Dockerfile
+ tags: |
+ ghcr.io/scop/bash-completion/test:${{matrix.dist}}
+ push: true