Skip to content

Bump actions/checkout from 2 to 4 (#158) #100

Bump actions/checkout from 2 to 4 (#158)

Bump actions/checkout from 2 to 4 (#158) #100

Workflow file for this run

name: Build and deploy (stagging)
on:
push:
branches:
- master
env:
RELEASE_NAME: data-api
CHART_VALUES_FILE: .helm/values.stage.yml
DEPLOY_NAMESPACE: sledilnik-stage
DEPLOY_ENV: stagging
DEPLOY_URL: https://api-stage.sledilnik.org
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push docker container image
uses: docker/build-push-action@v3
with:
push: true
context: ./sources/SloCovidServer
file: ./sources/SloCovidServer/Dockerfile
tags: |
ghcr.io/${{ github.repository_owner }}/data-api:latest
deploy:
runs-on: ubuntu-20.04
needs: build
if: "!contains(github.event.head_commit.message, 'NODEPLOY')"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Deploy
uses: sledilnik/action-helm-deploy@master
with:
chartName: sledilnik/data-api
chartVersion: '1.0.2'
kubeconfig: '${{ secrets.KUBECONFIG }}'