Use IMIO/gha action and rename docker image to delib/deliberations.be #2
Workflow file for this run
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: Publish latest image | |
on: | |
workflow_dispatch: | |
push: | |
env: | |
IMAGE_NAME: delib/deliberationsbe | |
jobs: | |
docker: | |
runs-on: | |
group: self-hosted | |
steps: | |
- name: Login to Harbor | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ secrets.HARBOR_URL }} | |
username: ${{ secrets.TELESERVICES_HARBOR_USERNAME }} | |
password: ${{ secrets.TELESERVICES_HARBOR_PASSWORD }} | |
- name: Build, push image and notify | |
uses: IMIO/gha/[email protected] | |
with: | |
IMAGE_NAME: ${{ env.IMAGE_NAME }} | |
IMAGE_TAGS: | | |
${{ secrets.HARBOR_URL }}/${{ env.IMAGE_NAME }}:latest | |
REGISTRY_URL: ${{ secrets.HARBOR_URL }} | |
REGISTRY_USERNAME: ${{ secrets.DELIB_HARBOR_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DELIB_HARBOR_PASSWORD }} | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }} | |
CONTEXT: '.' | |
DOCKERFILE: 'Dockerfile' | |
BUILD_ARGS: '' |