Skip to content

chore: add workflow again #4

chore: add workflow again

chore: add workflow again #4

Workflow file for this run

name: Deployment
on:
push:
branches: [main]
workflow_dispatch:
permissions:
id-token: write
contents: read
packages: write
concurrency:
group: deploy
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: buildx
uses: docker/setup-buildx-action@v2
- name: login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build
id: build-and-push
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/webmastercamp/${{ github.event.repository.name }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Deploy to deploys.app
uses: deploys-app/deploys-action@v1
with:
project: webmastercamp-jwc13
location: gke.cluster-rcf2
name: ${{ github.event.repository.name }}
image: ghcr.io/webmastercamp/${{ github.event.repository.name }}:latest
env:
DEPLOYS_AUTH_USER: ${{ secrets.DEPLOYS_AUTH_USER }}
DEPLOYS_AUTH_PASS: ${{ secrets.DEPLOYS_AUTH_PASS }}