mirror of https://github.com/1N3/Sn1per.git
test build and push
This commit is contained in:
parent
72d7fda4da
commit
78a3438501
|
|
@ -0,0 +1,29 @@
|
|||
name: Build and Push Docker Image to GHCR
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Change this to the appropriate branch if needed
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GHCR_TOKEN }}
|
||||
|
||||
- name: Build and Push Docker image
|
||||
run: |
|
||||
docker buildx create --use
|
||||
docker buildx build --push -t ghcr.io/${{ github.repository }}:latest -f Dockerfile.base .
|
||||
|
|
@ -0,0 +1 @@
|
|||
FROM alpine:3.9
|
||||
Loading…
Reference in New Issue