Skip to content

Commit

Permalink
gha
Browse files Browse the repository at this point in the history
  • Loading branch information
mohemohe committed Jul 17, 2024
1 parent 778213f commit 09819bc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 22 deletions.
20 changes: 0 additions & 20 deletions .drone.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'build'

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/lxbot/lxbot
tags: |
type=raw,value=latest
type=sha,prefix=,suffix=,format=short
- uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.13.6-alpine3.11 as builder
FROM golang:1.22.5-alpine3.20 as builder

ARG GOLANG_NAMESPACE="github.com/lxbot/script-debug"
ENV GOLANG_NAMESPACE="$GOLANG_NAMESPACE"
Expand All @@ -16,7 +16,7 @@ RUN mv /go/src/$GOLANG_NAMESPACE/script-debug.so /lxbot/scripts/

# ====================================================================================

FROM alpine
FROM alpine:3.20

RUN apk --no-cache add ca-certificates
COPY --from=builder /etc/localtime /etc/localtime
Expand Down

0 comments on commit 09819bc

Please sign in to comment.