mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 04:30:57 +01:00
19 lines
635 B
YAML
19 lines
635 B
YAML
name: publish
|
|
on: [push]
|
|
jobs:
|
|
publish-ephemeruo-image:
|
|
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-push-image
|
|
run: |
|
|
docker build . --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
|
docker run ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
|
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|