Skip to content

Upgrade dependencies #85

Upgrade dependencies

Upgrade dependencies #85

Workflow file for this run

name: Development Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set short commit hash in env
run: echo "COMMIT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
- name: Set up QEMU for multi platform image build
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_ACCESS }}
- name: Build and Push docker image
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64
push: true
tags: ajacques/resume_website:${{ env.COMMIT_SHA }}
- uses: azure/setup-kubectl@v4
- uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: '${{ secrets.KUBECONFIG_FILE }}'
id: setcontext
- uses: Azure/k8s-deploy@v5
with:
namespace: 'personalsites'
manifests: |
k8s/deployment.yaml
k8s/upload-cron.yaml
images: ajacques/resume_website:${{ env.COMMIT_SHA }}