ci: create docker image on tag creation
This commit is contained in:
parent
189c0c50fd
commit
4deed3d0b5
29
.github/workflows/docker-tag.yaml
vendored
Normal file
29
.github/workflows/docker-tag.yaml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Build and Push Docker Image Tag
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Log in to Docker registry
|
||||||
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.jabuxas.xyz -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
run: |
|
||||||
|
docker build -t git.jabuxas.xyz/jabuxas/abyss:${{ github.ref_name }} .
|
||||||
|
docker push git.jabuxas.xyz/jabuxas/abyss:${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Log out of Docker registry
|
||||||
|
run: docker logout git.jabuxas.xyz
|
89
.github/workflows/release.yml
vendored
89
.github/workflows/release.yml
vendored
@ -1,89 +0,0 @@
|
|||||||
# .github/workflows/release.yaml
|
|
||||||
|
|
||||||
on: release
|
|
||||||
name: Build Release
|
|
||||||
jobs:
|
|
||||||
release-linux-386:
|
|
||||||
name: release linux/386
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: "386"
|
|
||||||
GOOS: linux
|
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
|
||||||
release-linux-amd64:
|
|
||||||
name: release linux/amd64
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: amd64
|
|
||||||
GOOS: linux
|
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
|
||||||
release-linux-arm:
|
|
||||||
name: release linux/386
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: "arm"
|
|
||||||
GOOS: linux
|
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
|
||||||
release-linux-arm64:
|
|
||||||
name: release linux/amd64
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: arm64
|
|
||||||
GOOS: linux
|
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
|
||||||
release-darwin-amd64:
|
|
||||||
name: release darwin/amd64
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: amd64
|
|
||||||
GOOS: darwin
|
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
|
||||||
release-windows-386:
|
|
||||||
name: release windows/386
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: "386"
|
|
||||||
GOOS: windows
|
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
|
||||||
release-windows-amd64:
|
|
||||||
name: release windows/amd64
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: amd64
|
|
||||||
GOOS: windows
|
|
||||||
EXTRA_FILES: "README.md LICENSE"
|
|
Loading…
Reference in New Issue
Block a user