mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2024-11-25 11:16:52 +01:00
Use a more generic github workflow for pushing the docker image
This commit is contained in:
parent
b580b4aa0b
commit
ccea583d96
25
.github/workflows/push_image.yml
vendored
Normal file
25
.github/workflows/push_image.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Publish Docker Image
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Get release version
|
||||||
|
id: get_release_tag
|
||||||
|
run: |
|
||||||
|
echo ::set-env name=RELEASE_VERSION::$(echo $(date '+%Y%m%d'))
|
||||||
|
echo ::set-env name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//" | tr '[:upper:]' '[:lower:]')
|
||||||
|
echo ::set-env name=REPOSITORY_OWNER::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}' | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
|
||||||
|
- name: Publish to Registry
|
||||||
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
|
with:
|
||||||
|
name: ${{ env.REPOSITORY_OWNER }}/${{ env.REPOSITORY_NAME }}
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
snapshot: true
|
||||||
|
cache: true
|
||||||
|
tags: "latest, ${{ env.RELEASE_VERSION }}"
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -1,22 +0,0 @@
|
|||||||
name: Publish Docker
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: Get release version
|
|
||||||
id: get_release_tag
|
|
||||||
run: echo ::set-env name=RELEASE_VERSION::$(echo $(date '+%Y%m%d'))
|
|
||||||
- name: Publish to Registry
|
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
|
||||||
with:
|
|
||||||
name: wiiuenv/wiiumodulesystem
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
snapshot: true
|
|
||||||
cache: true
|
|
||||||
tags: "latest, ${{ env.RELEASE_VERSION }}"
|
|
Loading…
Reference in New Issue
Block a user