Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Bump docker/setup-buildx-action from 2 to 3 (#135) #39

Bump docker/setup-buildx-action from 2 to 3 (#135)

Bump docker/setup-buildx-action from 2 to 3 (#135) #39

name: Update website
on:
push:
branches: development
jobs:
update-website:
runs-on: ubuntu-latest
if: github.repository == 'Mudlet/mudlet-package-repo'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to Dockerhub
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/mudlet/mudlet-package-repo:development
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Delete old cluster deployment
uses: steebchen/kubectl@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
KUBECTL_VERSION: "1.19"
with:
args: delete deployment package-repo
- name: Deploy new cluster
uses: steebchen/kubectl@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
KUBECTL_VERSION: "1.19"
with:
args: apply -f kube
- name: Verify deployment
uses: steebchen/kubectl@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
KUBECTL_VERSION: "1.19"
with:
args: '"rollout status deployment/package-repo"'