parent
1d5aab6a8e
commit
332ca2e961
3 changed files with 3 additions and 13 deletions
|
@ -22,8 +22,10 @@ jobs:
|
||||||
apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin
|
apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Test docker image build
|
- name: Test docker image build
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -33,12 +33,6 @@ jobs:
|
||||||
username: ${{ secrets.FORGEJO_USER }}
|
username: ${{ secrets.FORGEJO_USER }}
|
||||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USER }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_KEY }}
|
|
||||||
|
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: alpine:3.18
|
image: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare requirements
|
- name: Prepare requirements
|
||||||
run: |
|
run: |
|
||||||
|
@ -32,12 +32,6 @@ jobs:
|
||||||
username: ${{ secrets.FORGEJO_USER }}
|
username: ${{ secrets.FORGEJO_USER }}
|
||||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USER }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_KEY }}
|
|
||||||
|
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue