Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arslankhanali authored Jul 20, 2024
1 parent 99b9af1 commit eb16a3b
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Images
name: Build and Push Podman Images

on:
push:
Expand All @@ -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

0 comments on commit eb16a3b

Please sign in to comment.