build: steps: - uses: actions/checkout@v3 - uses: docker/metadata-action@v3 id: metadata with: images: ghcr.io/${{ github.repository }} - uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - uses: int128/kaniko-action@v1 with: push: true tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} cache: true cache-repository: ghcr.io/${{ github.repository }}/cacheo
This commit is contained in:
parent
6c68132651
commit
b8cec40c08
1 changed files with 22 additions and 10 deletions
|
@ -9,14 +9,26 @@ jobs:
|
|||
container:
|
||||
image: docker:dind
|
||||
steps:
|
||||
- name: Get git and docker
|
||||
run: apk add git nodejs
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Login
|
||||
run: echo "${{ secrets.TOKEN}}" | docker login -u deke git.dekedin.me --password-stdin
|
||||
- name: Build
|
||||
run: docker build -t devenv .
|
||||
- name: Push image
|
||||
run: docker push devenv git.dekedin.me/deke/dev-env
|
||||
- name: Get git and podman
|
||||
run: apk add git nodejs
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
# - name: Login
|
||||
# run: echo ${{secrets.TOKEN }} docker login -u deke -p ${{ secrets.TOKEN }} git.dekedin.me
|
||||
- uses: docker/login-action@v1
|
||||
with:
|
||||
registry: git.dekedin.me
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.TOKEN }}
|
||||
- uses: int128/kaniko-action@v1
|
||||
with:
|
||||
push: true
|
||||
tags: ${{ steps.metadata.outputs.tags }}
|
||||
labels: ${{ steps.metadata.outputs.labels }}
|
||||
cache: true
|
||||
# - name: Build
|
||||
# run: podman build -t devenv .
|
||||
- name: Push image
|
||||
run: docker push devenv git.dekedin.me/deke/dev-env
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue