From 3837e020cdcadfbcfceb22598c3e3f01b86efcbc Mon Sep 17 00:00:00 2001 From: sergystepanov Date: Wed, 25 Nov 2020 00:22:37 +0300 Subject: [PATCH] Enable legacy Github Docker Registry publishing workflow (#247) * Update Docker publishing script --- ...r_publish.yml.disabled => docker_publish.yml} | 16 ++++++++-------- Dockerfile | 3 +-- 2 files changed, 9 insertions(+), 10 deletions(-) rename .github/workflows/{docker_publish.yml.disabled => docker_publish.yml} (67%) diff --git a/.github/workflows/docker_publish.yml.disabled b/.github/workflows/docker_publish.yml similarity index 67% rename from .github/workflows/docker_publish.yml.disabled rename to .github/workflows/docker_publish.yml index a856970b..22b19a14 100644 --- a/.github/workflows/docker_publish.yml.disabled +++ b/.github/workflows/docker_publish.yml @@ -3,26 +3,26 @@ # ------------------------------------------------------------------------ name: publish -# run only when pushing into the master, tagged with a v-prefix + on: push: branches: - master tags: - 'v*' + jobs: docker-publish: - name: Publish Docker image runs-on: ubuntu-latest steps: - - name: Get the source - uses: actions/checkout@v2 - - name: Publish to GitHub Packages - uses: docker/build-push-action@v1 + - uses: actions/checkout@v2 + + - uses: docker/build-push-action@v1 with: + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} add_git_labels: true tag_with_ref: true - username: ${{ github.ACTOR }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: docker.pkg.github.com repository: ${{ github.REPOSITORY }}/cloud-game diff --git a/Dockerfile b/Dockerfile index 620b4dd9..9aa489a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG BUILD_PATH=/go/src/github.com/giongto35/cloud-game # build image -FROM golang:1.14 AS build +FROM golang:1.15 AS build ARG BUILD_PATH WORKDIR ${BUILD_PATH} @@ -39,7 +39,6 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* COPY --from=build ${BUILD_PATH}/bin/ ./ -# it assumed there are only binary files yet RUN cp -s $(pwd)/* /usr/local/bin COPY web ./web COPY assets/emulator/libretro/cores/*.so \