Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 2451369

Browse files
authored
Merge pull request #29 from sudo-bmitch/pr-bump-version-and-archive
Chore: Bump GHA versions and archive project
2 parents 2b3808e + 7aab9ea commit 2451369

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- 'feature/**'
88
tags:
99
- 'v*.*.*'
10-
schedule:
11-
- cron: '0 06 * * 1'
10+
# schedule:
11+
# - cron: '0 06 * * 1'
1212

1313
jobs:
1414

@@ -40,50 +40,40 @@ jobs:
4040
MAJOR=${MINOR%.*}
4141
TAGS="${TAGS},${HUB_IMAGE}:${MINOR},${HUB_IMAGE}:${MAJOR},${HUB_IMAGE}:latest,${GHCR_IMAGE}:${MINOR},${GHCR_IMAGE}:${MAJOR},${GHCR_IMAGE}:latest"
4242
fi
43-
echo ::set-output name=version::${VERSION}
44-
echo ::set-output name=tags::${TAGS}
45-
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
43+
VCS_DATE="$(date -d "@${VCS_SEC}" +%Y-%m-%dT%H:%M:%SZ --utc)"
44+
echo "version=${VERSION}" >>$GITHUB_OUTPUT
45+
echo "tags=${TAGS}" >>$GITHUB_OUTPUT
46+
echo "created=${VCS_DATE}" >>$GITHUB_OUTPUT
4647
4748
- name: Check out code
48-
uses: actions/checkout@v2
49-
50-
# - name: Set up QEMU
51-
# uses: docker/setup-qemu-action@v1
49+
uses: actions/checkout@v4
5250

5351
- name: Set up Docker Buildx
54-
uses: docker/setup-buildx-action@v1
52+
uses: docker/setup-buildx-action@v3
5553

5654
- name: Login to DockerHub
5755
if: github.repository_owner == 'sudo-bmitch'
58-
uses: docker/login-action@v1
56+
uses: docker/login-action@v3
5957
with:
6058
username: ${{ secrets.DOCKERHUB_USERNAME }}
6159
password: ${{ secrets.DOCKERHUB_TOKEN }}
6260

6361
- name: Login to GHCR
6462
if: github.repository_owner == 'sudo-bmitch'
65-
uses: docker/login-action@v1
63+
uses: docker/login-action@v3
6664
with:
6765
registry: ghcr.io
6866
username: ${{ secrets.GHCR_USERNAME }}
6967
password: ${{ secrets.GHCR_TOKEN }}
7068

71-
- name: Cache docker build
72-
uses: actions/cache@v2
73-
with:
74-
path: /tmp/.buildx-cache
75-
key: ${{ runner.os }}-buildx
76-
7769
- name: Build and push
78-
uses: docker/build-push-action@v2
70+
uses: docker/build-push-action@v6
7971
with:
8072
context: .
8173
file: ./Dockerfile
8274
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
8375
push: ${{ github.event_name != 'pull_request' && github.repository_owner == 'sudo-bmitch' }}
8476
tags: ${{ steps.prep.outputs.tags }}
85-
cache-from: type=local,src=/tmp/.buildx-cache
86-
cache-to: type=local,dest=/tmp/.buildx-cache
8777
labels: |
8878
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
8979
org.opencontainers.image.source=${{ github.repositoryUrl }}

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
Waits for a docker stack deploy to complete.
44

5+
## Archive Notice
6+
7+
This project has been archived and is no longer being maintained.
8+
Docker has added the `--detach` CLI flag which allows similar functionality to be implemented with:
9+
10+
```shell
11+
docker stack deploy --detach=false -c docker-compose.yaml $stack_name
12+
```
13+
14+
## CLI Usage
15+
516
Example Usage:
617

718
`docker-stack-wait.sh $stack_name`

0 commit comments

Comments
 (0)