Merge branch 'stevanfreeborn/chore/migrate-to-gitea'
This commit is contained in:
@@ -13,36 +13,38 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push Docker image
|
||||
runs-on: ubuntu-24.04-arm
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
- name: Create version tag
|
||||
id: version
|
||||
run: echo "version=$(date +%Y.%m.%d.%H%M%S)" >> $GITHUB_OUTPUT
|
||||
- name: Build and push server image
|
||||
run: |
|
||||
TAG=${{ secrets.DOCKERHUB_USERNAME }}/links.stevanfreeborn.com:${{ steps.version.outputs.version }}
|
||||
docker build -t $TAG .
|
||||
docker push $TAG
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm64
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/links.stevanfreeborn.com:${{ steps.version.outputs.version }}
|
||||
deploy:
|
||||
name: Deploy to server
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Run deploy script
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
@@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
@@ -20,24 +20,32 @@ jobs:
|
||||
version: latest
|
||||
build:
|
||||
name: Build server
|
||||
runs-on: ubuntu-24.04-arm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '1.25'
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
- name: Build application
|
||||
run: CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/web/main.go
|
||||
- name: Build application for ARM64
|
||||
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o server ./cmd/web/main.go
|
||||
docker:
|
||||
name: Build Docker image
|
||||
runs-on: ubuntu-24.04-arm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
- name: Build Docker image
|
||||
run: docker build -t links.stevanfreeborn.com .
|
||||
uses: actions/checkout@v7
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
- name: Build Docker image for ARM64
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm64
|
||||
push: false
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
[
|
||||
{
|
||||
"href": "https://groundsforsupport.stevanfreeborn.com",
|
||||
"icon": "fa-solid fa-mug-hot fa-lg",
|
||||
"text": "Buy Me A Coffee"
|
||||
},
|
||||
{
|
||||
"href": "https://youtube.stevanfreeborn.com",
|
||||
"icon": "fa-brands fa-square-youtube fa-lg",
|
||||
@@ -14,16 +19,6 @@
|
||||
"icon": "fa-solid fa-store fa-lg",
|
||||
"text": "Store"
|
||||
},
|
||||
{
|
||||
"href": "https://groundsforsupport.stevanfreeborn.com",
|
||||
"icon": "fa-solid fa-mug-hot fa-lg",
|
||||
"text": "Buy Me A Coffee"
|
||||
},
|
||||
{
|
||||
"href": "https://tangled.stevanfreeborn.com",
|
||||
"icon": "fa-brands fa-git-alt fa-lg",
|
||||
"text": "Tangled"
|
||||
},
|
||||
{
|
||||
"href": "https://github.stevanfreeborn.com",
|
||||
"icon": "fa-brands fa-square-github fa-lg",
|
||||
@@ -49,16 +44,6 @@
|
||||
"icon": "fa-brands fa-discord fa-lg",
|
||||
"text": "Discord"
|
||||
},
|
||||
{
|
||||
"href": "https://telegram.stevanfreeborn.com",
|
||||
"icon": "fa-brands fa-telegram fa-lg",
|
||||
"text": "Telegram"
|
||||
},
|
||||
{
|
||||
"href": "https://substack.stevanfreeborn.com",
|
||||
"icon": "fa-solid fa-video fa-lg",
|
||||
"text": "stdout"
|
||||
},
|
||||
{
|
||||
"href": "https://stevanfreeborn.com",
|
||||
"icon": "fa-solid fa-globe fa-lg",
|
||||
|
||||
Reference in New Issue
Block a user