Update docker-image.yml #4
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
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 |