From 0b8403b434b579fc803f4324d9ec7c023acbf8e0 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 10 Aug 2020 12:12:28 +0200 Subject: [PATCH] Add action to push docker images --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..612969e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +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 }}" \ No newline at end of file