create docker container
Build and push image for websocket http cache / docker (push) Successful in 16s
Build and push image for websocket http cache / docker (push) Successful in 16s
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
name: Build and push image for websocket http cache
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
name: Check out code
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker buildx build . -t gitea.chromart.cc/martin/websocket-http-cache:v1 -t gitea.chromart.cc/martin/websocket-http-cache:latest
|
||||
|
||||
- name: Login to Docker
|
||||
run: echo -n '${{ secrets.PASSWORD }}' | docker login gitea.chromart.cc --username ${{ secrets.USERNAME }} --password-stdin
|
||||
|
||||
- name: Push Docker image
|
||||
run: docker image push --all-tags gitea.chromart.cc/martin/websocket-http-cache
|
||||
Reference in New Issue
Block a user