Skip to content

Commit

Permalink
Create manifest-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CA-MKSingh authored Oct 6, 2024
1 parent 598da7f commit bce3c41
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/manifest-test.yml
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

0 comments on commit bce3c41

Please sign in to comment.