Enable legacy Github Docker Registry publishing workflow (#247)

* Update Docker publishing script
This commit is contained in:
sergystepanov 2020-11-25 00:22:37 +03:00 committed by Sergey Stepanov
parent 569c76a2f8
commit 3837e020cd
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
2 changed files with 9 additions and 10 deletions

View file

@ -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

3
Dockerfile vendored
View file

@ -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 \