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:
|
container:
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
steps:
|
steps:
|
||||||
- name: Get git and docker
|
- name: Get git and podman
|
||||||
run: apk add git nodejs
|
run: apk add git nodejs
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Login
|
# - name: Login
|
||||||
run: echo "${{ secrets.TOKEN}}" | docker login -u deke git.dekedin.me --password-stdin
|
# run: echo ${{secrets.TOKEN }} docker login -u deke -p ${{ secrets.TOKEN }} git.dekedin.me
|
||||||
- name: Build
|
- uses: docker/login-action@v1
|
||||||
run: docker build -t devenv .
|
with:
|
||||||
- name: Push image
|
registry: git.dekedin.me
|
||||||
run: docker push devenv git.dekedin.me/deke/dev-env
|
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