Merge pull request #5943 from bcgov/renovate/nginx-1.x #34
This file contains hidden or 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: 23.Build and Push Maintenance Image | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- maintenance/** | |
- .github/workflows/build-push-maintenance.yml | |
env: | |
GITHUB_REGISTRY: ghcr.io | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
packages: write | |
contents: read | |
jobs: | |
build-push-maintenance: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6 | |
- uses: actions/checkout@09d2acae674a48949e3602304ab46fd20ae0c42f | |
- name: Build and Push Docker Image | |
uses: egose/actions/docker-build-push@badb0f679e1baa1628818fad29cfd73f8222d49d | |
with: | |
registry-url: ${{ env.GITHUB_REGISTRY }} | |
registry-username: ${{ github.actor }} | |
registry-password: ${{ secrets.GITHUB_TOKEN }} | |
image-name: bcgov/pltsvc-maintenance | |
docker-context: maintenance | |
docker-file: maintenance/Dockerfile | |
docker-args: | | |
deployment_tag=${{ github.sha }} | |
metadata-tags: | | |
type=ref,event=branch | |
type=sha,format=long,prefix=,suffix= |