Merge branch '59-gitea-action' into develop
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
name: build_develop
|
name: build_develop
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
push:
|
push:
|
||||||
branches: [develop]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -12,9 +12,9 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Build and push to viker registry
|
- name: Install Docker
|
||||||
uses: docker/build-push-action@v4
|
uses: https://github.com/papodaca/install-docker-action@v1
|
||||||
with:
|
- name: Build Docker Image
|
||||||
context: .
|
run: docker build -t viker.cheezers.net:5000/agon:develop .
|
||||||
push: true
|
- name: Push Docker Image
|
||||||
tags: viker.cheezers.net:5000/agon:develop
|
run: docker push viker.cheezers.net:5000/agon:develop
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
name: build_release
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
push:
|
||||||
|
tags: ['*']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Install Docker
|
||||||
|
uses: https://github.com/papodaca/install-docker-action@v1
|
||||||
|
- name: Build Docker Images
|
||||||
|
run: docker build -t viker.cheezers.net:5000/agon:latest -t viker.cheezers.net:5000/agon:${{env.BRANCH_TAG}} .
|
||||||
|
- name: Push Latest Image
|
||||||
|
run: docker push viker.cheezers.net:5000/agon:latest
|
||||||
|
- name: Push Tagged Image
|
||||||
|
run: docker push viker.cheezers.net:5000/agon:${{env.BRANCH_TAG}}
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
name: GitHub Actions Demo
|
|
||||||
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
|
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
Explore-GitHub-Actions:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
|
||||||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
|
||||||
ls ${{ github.workspace }}
|
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash -x
|
|
||||||
|
|
||||||
# this file is intended to build the docker image and push to the correct repository. Intended to be run by my buildbot instance.
|
|
||||||
|
|
||||||
# build, tag, and push develop
|
|
||||||
docker build -t viker.cheezers.net:5000/agon:develop .
|
|
||||||
docker push viker.cheezers.net:5000/agon:develop
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash -x
|
|
||||||
|
|
||||||
# this file is intended to build the docker image and push to the correct repository. Intended to be run by my buildbot instance.
|
|
||||||
|
|
||||||
# check if there is a git tag. if so, tag with that tag and release
|
|
||||||
# expecting tag to be 6 characters long. otherwise isn't not the right tag
|
|
||||||
GITTAG=$(git describe --tags)
|
|
||||||
length=${#GITTAG}
|
|
||||||
|
|
||||||
if [ $length -eq 6 ]; then
|
|
||||||
docker build -t viker.cheezers.net:5000/agon:release -t viker.cheezers.net:5000/agon:$GITTAG .
|
|
||||||
docker push viker.cheezers.net:5000/agon:release
|
|
||||||
docker push viker.cheezers.net:5000/agon:$GITTAG
|
|
||||||
else
|
|
||||||
docker build -t viker.cheezers.net:5000/agon:release .
|
|
||||||
docker push viker.cheezers.net:5000/agon:release
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user