diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9361b16..10acaa6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,4 +1,4 @@ -name: Build and Push Docker Images +name: Build and Push Podman Images on: push: @@ -16,40 +16,25 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: all - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + - name: Install Podman + run: | + sudo apt-get update + sudo apt-get -y install podman - name: Login to Quay.io - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_PASSWORD }} - - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- + run: podman login quay.io -u ${{ secrets.QUAY_USERNAME }} -p ${{ secrets.QUAY_PASSWORD }} - name: Build and push backend image run: | cd skupper-app/backend - docker buildx build --push --platform linux/amd64,linux/arm64,linux/ppc64le \ - --tag quay.io/arslankhanali/skupper-backend:latest-gh . + podman build --file Containerfile --tag quay.io/arslankhanali/skupper-backend:latest + podman push quay.io/arslankhanali/skupper-backend:latest - name: Build and push frontend image run: | cd skupper-app/frontend - docker buildx build --push --platform linux/amd64,linux/arm64,linux/ppc64le \ - --tag quay.io/arslankhanali/skupper-frontend:latest-gh . + podman build --file Containerfile --tag quay.io/arslankhanali/skupper-frontend:latest + podman push quay.io/arslankhanali/skupper-frontend:latest - name: Logout from Quay.io - run: docker logout quay.io + run: podman logout quay.io