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
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
checkout:
|
||||
runs-on: docker
|
||||
image: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: user/app:latest
|
||||
build:
|
||||
runs-on: docker
|
||||
image: alpine:edge
|
||||
steps:
|
||||
- run: apk add podman
|
||||
- run: podman build -t devenv .
|
||||
update:
|
||||
runs-on: docker
|
||||
image: alpine:edge
|
||||
steps:
|
||||
- run: podman login -u deke -p ${{ secrets.TOKEN }} git.dekedin.me
|
||||
- run: podman push devenv git.dekedin.me/deke/dev-env
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue