mirror of https://github.com/1N3/Sn1per.git
23 lines
770 B
YAML
23 lines
770 B
YAML
name: publish
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
publish-to-ghcr:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build the hello-docker Docker image
|
|
run: |
|
|
container_img=ghcr.io/deselikem/hello-docker-gcr-demo
|
|
echo $container_img
|
|
echo ${github.repository}
|
|
docker build . -f Dockerfile.base --tag ghcr.io/deselikem/hello-docker-gcr-demo:latest
|
|
#docker run ghcr.io/deselikem/hello-docker-gcr-demo:latest
|
|
#docker push ghcr.io/deselikem/hello-docker-gcr-demo:latest |