-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
598da7f
commit bce3c41
Showing
1 changed file
with
39 additions
and
0 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,39 @@ | ||
name: Test Manifest Creation | ||
on: workflow_dispatch # This allows manual trigger from GitHub UI | ||
|
||
env: | ||
IMAGE_NAME: "shieldauth/shield" | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
jobs: | ||
test-manifests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Create and push manifest | ||
run: | | ||
# Enable experimental features for manifest support | ||
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json | ||
sudo service docker restart | ||
# Set the version you want to test | ||
VERSION="v0.1.8-alpha" | ||
# Create and push version manifest | ||
docker buildx imagetools create -t ${{ env.IMAGE_NAME }}:${VERSION} \ | ||
${{ env.IMAGE_NAME }}:${VERSION}-amd64 \ | ||
${{ env.IMAGE_NAME }}:${VERSION}-arm64 | ||
# Create and push latest manifest | ||
docker buildx imagetools create -t ${{ env.IMAGE_NAME }}:latest \ | ||
${{ env.IMAGE_NAME }}:latest-amd64 \ | ||
${{ env.IMAGE_NAME }}:latest-arm64 |