Skip to content

update cronjob api #112

update cronjob api

update cronjob api #112

name: Publish Docker image
on:
push:
branches:
- main
jobs:
push_to_registries:
name: Push Docker image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: inspirehep/backup-operator:${{ github.sha }}
deploy:
needs: [push_to_registries]
runs-on: ubuntu-latest
steps:
- name: Dispatch event
uses: cern-sis/gh-workflows/.github/actions/[email protected]
with:
token: ${{ secrets.PAT_FIRE_EVENTS_ON_CERN_SIS_KUBERNETES }}
images: "inspirehep/backup-operator:${{ github.sha }}"