Use Docker instead of Podman for now
This commit is contained in:
parent
36e91ff03e
commit
d9b1761cb3
1 changed files with 10 additions and 19 deletions
|
@ -14,32 +14,23 @@ jobs:
|
||||||
run: echo "NOW=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
|
run: echo "NOW=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
|
||||||
- name: Fix for bad os check
|
- name: Fix for bad os check
|
||||||
run: echo "RUNNER_OS=Linux" >> $GITHUB_ENV
|
run: echo "RUNNER_OS=Linux" >> $GITHUB_ENV
|
||||||
- name: Login to Forgejo Registry
|
- name: Login to Docker Hub
|
||||||
uses: https://cremin.dev/actions/podman-login@v1
|
uses: https://cremin.dev/actions/docker-login@v3
|
||||||
with:
|
with:
|
||||||
registry: cremin.dev
|
registry: cremin.dev
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
||||||
logout: false
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: https://cremin.dev/actions/checkout@v4
|
uses: https://cremin.dev/actions/checkout@v4
|
||||||
- name: Build image
|
- name: Set up Docker Buildx
|
||||||
uses: https://cremin.dev/actions/buildah-build@v2
|
uses: https://cremin.dev/actions/docker-setup-buildx@v3
|
||||||
|
- name: Build and push
|
||||||
|
uses: https://cremin.dev/actions/docker-build-push@v6
|
||||||
with:
|
with:
|
||||||
containerfiles: ./Containerfile
|
file: ./Containerfile
|
||||||
context: ./
|
context: ./
|
||||||
oci: true
|
tags: cremin.dev/jonathan/hostr:latest,cremin.dev/jonathan/hostr:${{ github.sha }}
|
||||||
layers: true
|
push: true
|
||||||
image: cremin.dev/jonathan/hostr
|
|
||||||
tags: latest ${{ github.sha }}
|
|
||||||
- name: Push image
|
|
||||||
uses: https://cremin.dev/actions/push-to-registry@v2
|
|
||||||
with:
|
|
||||||
registry: cremin.dev
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
|
|
||||||
image: jonathan/hostr
|
|
||||||
tags: latest ${{ github.sha }}
|
|
||||||
test-image:
|
test-image:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
needs: build-image
|
needs: build-image
|
||||||
|
@ -76,4 +67,4 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: 0kWP/ZkgIwQzgL9t4SGv9Uc93rO//OdyqMH329b/
|
AWS_SECRET_ACCESS_KEY: 0kWP/ZkgIwQzgL9t4SGv9Uc93rO//OdyqMH329b/
|
||||||
AWS_BUCKET: hostr
|
AWS_BUCKET: hostr
|
||||||
run: |
|
run: |
|
||||||
podman run --rm --env-host -it cremin.dev/jonathan/hostr:${{ github.sha }} yarn test
|
docker run --rm --env-host -it cremin.dev/jonathan/hostr:${{ github.sha }} yarn test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue