Skip to content

refactor: deps bump #106

refactor: deps bump

refactor: deps bump #106

Workflow file for this run

name: deploys
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-single-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-single-buildx
- name: Build and push image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/rayriffy/apple-music-github-profile-runtime
cache-from: type=local,src=/tmp/.buildx-cache
# mode=max to cache multi-layer stage
# https://github.com/moby/buildkit#--export-cache-options
# https://github.com/docker/buildx#--cache-tonametypetypekeyvalue
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
- uses: deploys-app/deploys-action@v1
with:
project: rayriffy
location: gke.cluster-rcf2
name: music-profile
image: ghcr.io/rayriffy/apple-music-github-profile-runtime
minReplicas: 1
maxReplicas: 5
env:
DEPLOYS_AUTH_USER: ${{ secrets.DEPLOYS_AUTH_USER }}
DEPLOYS_AUTH_PASS: ${{ secrets.DEPLOYS_AUTH_PASS }}
- name: Replacing with newer cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache