Skip to content

CI/CD

CI/CD #5

Workflow file for this run

name: "CI/CD"
on:
push:
branches:
- "*"
- "*/*/*"
# - main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
push: true
tags: |
ghcr.io/${{ secrets.GH_USERNAME }}/co-co-gong-server:latest,
ghcr.io/${{ secrets.GH_USERNAME }}/co-co-gong-server:${{ github.sha }}
# TODO: ghcr.io & Argo CD (related: #22)