mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-26 18:55:45 +02:00
test
This commit is contained in:
63
.github/workflows/push-main-image-ghcr.yml
vendored
63
.github/workflows/push-main-image-ghcr.yml
vendored
@@ -9,37 +9,40 @@ on:
|
|||||||
tags: ["v[0-9]+.[0-9]+.[0-9]*"]
|
tags: ["v[0-9]+.[0-9]+.[0-9]*"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push-decluttarr-image:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
outputs:
|
||||||
run:
|
new_tag: ${{ steps.setversion.outputs.new_tag }}
|
||||||
working-directory: '.'
|
defaults:
|
||||||
steps:
|
run:
|
||||||
- name: 'Checkout GitHub Action'
|
working-directory: '.'
|
||||||
uses: actions/checkout@main
|
steps:
|
||||||
|
- name: 'Checkout GitHub Action'
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: 'Login to GitHub Container Registry'
|
- name: 'Login to GitHub Container Registry'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{github.actor}}
|
username: ${{github.actor}}
|
||||||
password: ${{secrets.GITHUB_TOKEN}}
|
password: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
- name: Bump version and push tag
|
|
||||||
id: setversion
|
|
||||||
uses: anothrNick/github-tag-action@1.36.0
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
WITH_V: true
|
|
||||||
|
|
||||||
- name: "Build, Tag, and push the Docker image"
|
- name: Bump version and push tag
|
||||||
env:
|
id: setversion
|
||||||
IMAGE_NAME: ghcr.io/manimatter/decluttarr
|
uses: anothrNick/github-tag-action@1.36.0
|
||||||
IMAGE_TAG: ${{ steps.setversion.new_tag }}
|
env:
|
||||||
run: |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
docker build -f docker/Dockerfile -t $IMAGE_NAME:$IMAGE_TAG .
|
WITH_V: true
|
||||||
docker push $IMAGE_NAME:$IMAGE_TAG
|
|
||||||
|
- name: "Build, Tag, and push the Docker image"
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: ghcr.io/manimatter/decluttarr
|
||||||
|
IMAGE_TAG: ${{ steps.build.outputs.new_tag }}
|
||||||
|
run: |
|
||||||
|
docker build -f docker/Dockerfile -t $IMAGE_NAME:$IMAGE_TAG .
|
||||||
|
docker push $IMAGE_NAME:$IMAGE_TAG
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user