fix(docker): nginx.sh not running for kubernetes #29
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: Image | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build image | |
run: | | |
docker build -t quay.io/hawtio/online:latest . | |
- name: Display image | |
run: | | |
docker images | |
- name: Push image to Quay.io | |
env: | |
USERNAME: ${{ secrets.QUAY_USERNAME }} | |
PASSWORD: ${{ secrets.QUAY_PASSWORD }} | |
run: | | |
docker login -u $USERNAME -p $PASSWORD quay.io | |
docker push quay.io/hawtio/online:latest |