mirror of
https://codeberg.org/scip/ephemerup.git
synced 2025-12-17 12:40:57 +01:00
next try
This commit is contained in:
35
.github/workflows/pushimage.yaml
vendored
35
.github/workflows/pushimage.yaml
vendored
@@ -1,18 +1,29 @@
|
|||||||
name: publish
|
name: build-push-image
|
||||||
on: [push]
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'development'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-ephemeruo-image:
|
build-and-push-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout repository
|
||||||
- name: Login to GitHub Container Registry
|
uses: actions/checkout@v3
|
||||||
uses: docker/login-action@v1
|
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: https://ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: build-push-image
|
|
||||||
run: |
|
- name: Build and push Docker image
|
||||||
docker build . --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||||
docker run ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
with:
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
context: image/
|
||||||
|
push: true
|
||||||
|
tags: ghcr.io/tlinden/ephemerup:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user