Compare commits
3 Commits
b68a65386e
...
master
Author | SHA1 | Date | |
---|---|---|---|
7e449575ed | |||
7c556c3bd7 | |||
e18aacd98b |
@@ -12,8 +12,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install docker and docker compose
|
||||
run: |
|
||||
apt update
|
||||
apt install -y docker docker-compose
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: https://github.com/docker/login-action@v1
|
||||
uses: https://github.com/docker/login-action@v3.3.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||
@@ -23,14 +28,14 @@ jobs:
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v1
|
||||
uses: https://github.com/docker/setup-buildx-action@v3.8.0
|
||||
|
||||
- name: Available platforms
|
||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||
|
||||
- name: Build Docker image and push
|
||||
id: docker_build
|
||||
uses: https://github.com/docker/build-push-action@v2
|
||||
uses: https://github.com/docker/build-push-action@v6.12.0
|
||||
with:
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
@@ -47,8 +52,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install docker and docker compose
|
||||
run: |
|
||||
apt update
|
||||
apt install -y docker docker-compose
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
uses: https://github.com/docker/login-action@v3.3.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
|
||||
@@ -58,14 +68,14 @@ jobs:
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v1
|
||||
uses: https://github.com/docker/setup-buildx-action@v3.8.0
|
||||
|
||||
- name: Available platforms
|
||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||
|
||||
- name: Build Docker image and push
|
||||
id: docker_build
|
||||
uses: https://github.com/docker/build-push-action@v2
|
||||
uses: https://github.com/docker/build-push-action@v6.12.0
|
||||
with:
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
|
Reference in New Issue
Block a user