Skip to content

Update docker-image.yml #4

Update docker-image.yml

Update docker-image.yml #4

Workflow file for this run

name: Build and Push Podman Images
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Podman
run: |
sudo apt-get update
sudo apt-get -y install podman
- name: Login to Quay.io
run: podman login quay.io -u ${{ secrets.QUAY_USERNAME }} -p ${{ secrets.QUAY_PASSWORD }}
- name: Build and push backend image
run: |
cd skupper-app/backend
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
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: podman logout quay.io