test action
This commit is contained in:
parent
6b50682e1b
commit
f7d7429ce3
1 changed files with 15 additions and 23 deletions
|
@ -1,33 +1,25 @@
|
||||||
|
|
||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
checkout:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
image: ubuntu-latest
|
image: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Checkout
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
-
|
build:
|
||||||
name: Login to Docker Hub
|
runs-on: docker
|
||||||
uses: docker/login-action@v3
|
image: alpine:edge
|
||||||
with:
|
steps:
|
||||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
- run: apk add podman
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
- run: podman build -t devenv .
|
||||||
-
|
update:
|
||||||
name: Set up QEMU
|
runs-on: docker
|
||||||
uses: docker/setup-qemu-action@v3
|
image: alpine:edge
|
||||||
-
|
steps:
|
||||||
name: Set up Docker Buildx
|
- run: podman login -u deke -p ${{ secrets.TOKEN }} git.dekedin.me
|
||||||
uses: docker/setup-buildx-action@v3
|
- run: podman push devenv git.dekedin.me/deke/dev-env
|
||||||
-
|
|
||||||
name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: user/app:latest
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue