Move to GitLab
This commit is contained in:
5
.github-archive/.deepsource.toml
Normal file
5
.github-archive/.deepsource.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
version = 1
|
||||
|
||||
[[analyzers]]
|
||||
name = "docker"
|
||||
enabled = true
|
||||
5
.github-archive/renovate.json
Normal file
5
.github-archive/renovate.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
||||
33
.github-archive/workflows/build.yml
Normal file
33
.github-archive/workflows/build.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build
|
||||
on:
|
||||
push:
|
||||
tags: '*'
|
||||
|
||||
jobs:
|
||||
prepare-data:
|
||||
name: Prepare Data
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
tag: ${{ steps.prepare.outputs.SOURCE_TAG }}
|
||||
steps:
|
||||
- id: prepare
|
||||
name: Prepare environment variables
|
||||
run: |
|
||||
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
|
||||
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
|
||||
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
|
||||
|
||||
build:
|
||||
name: GitHub Package Registry
|
||||
runs-on: ubuntu-latest
|
||||
needs: [prepare-data]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to GitHub Package Registry
|
||||
run: echo ${{ secrets.PAT }} | docker login ghcr.io -u luketainton --password-stdin
|
||||
- name: Build image for GitHub Package Registry
|
||||
run: docker build . --file Dockerfile --tag ghcr.io/luketainton/hesk:${{ needs.prepare-data.outputs.tag }} --tag ghcr.io/luketainton/hesk:latest
|
||||
- name: Push image to GitHub Package Registry
|
||||
run: |
|
||||
docker push ghcr.io/luketainton/hesk:latest
|
||||
docker push ghcr.io/luketainton/hesk:${{ needs.prepare-data.outputs.tag }}
|
||||
Reference in New Issue
Block a user