Skip to content

Deploy to dev

Deploy to dev #1

Workflow file for this run

name: Deploy to dev
concurrency:
group: ${{ github.ref }}
on:
schedule:
- cron: "0 3 1,15 * *"
push:
branches:
- '*-pilot'
- '*/*-pilot'
workflow_dispatch:
jobs:
setup:
runs-on: [self-hosted, mobileapps]
steps:
- name: docker login
env:
USER_FILE_NAME: DOCKER_USER_APPU
PASS_FILE_NAME: DOCKER_PASS_APPU
AUTH_FILE_NAME: appuAuth.json
run: podman-login
build:
needs: [setup]
runs-on: [self-hosted, mobileapps]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Docker build
run: >
buildah bud
-f Dockerfile
--isolation chroot
--pull
--layers
--tag harbor.uio.no/it-ffu-appu-drift/nettskjema-inn-kroppskart:${{ github.sha }}-pilot
--target deploy
deploy:
needs: [build]
uses: ./.github/workflows/global-deploy-action.yml
secrets: inherit
with:
application: 'nettskjema-inn-kroppskart'
project: 'nettskjema-inn-dev'
environment: 'pilot'
image: harbor.uio.no/it-ffu-appu-drift/nettskjema-inn-kroppskart:${{ github.sha }}-pilot
# dry-run: true