Workflow Action for Docker Repo #2
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -23,23 +23,19 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://gitea.com/actions/checkout@master
|
||||
- name: Insecure Docker Repository
|
||||
run: |
|
||||
sudo truncate -s-2 /etc/docker/daemon.json
|
||||
echo ", \"insecure-registries\": [\"${{ vars.DOCKER_REPO }}\"]}" | sudo tee -a /etc/docker/daemon.json
|
||||
sudo systemctl restart docker
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
${{ vars.DOCKER_REPO }}/costhive
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
config-inline: |
|
||||
[registry.${{ vars.DOCKER_REPO }}]
|
||||
http = true
|
||||
insecure = true
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Build and push
|
||||
uses: https://github.com/docker/build-push-action@v6
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user